Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -59,8 +59,8 @@ AVAILABLE_MODELS = {
|
|
59 |
|
60 |
# Chat memory (in-memory)
|
61 |
|
62 |
-
|
63 |
-
|
64 |
|
65 |
# Generate response stream
|
66 |
|
|
|
59 |
|
60 |
# Chat memory (in-memory)
|
61 |
|
62 |
+
chat_histories = defaultdict(list)
|
63 |
+
MAX_HISTORY = 100 # limit memory to avoid crashes
|
64 |
|
65 |
# Generate response stream
|
66 |
|