Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,7 +36,7 @@ MAX_MEMORY_MESSAGES = 90 # Maximum messages to keep in memory per user
|
|
| 36 |
MEMORY_CLEANUP_TIMEOUT = 1800 # 30 minutes in seconds - remove inactive users
|
| 37 |
|
| 38 |
# small threshold to detect effectively-empty uploads (adjust as needed)
|
| 39 |
-
IMAGE_BLANK_THRESHOLD_BYTES = int(os.getenv("IMAGE_BLANK_THRESHOLD_BYTES", "
|
| 40 |
|
| 41 |
client = genai.Client(api_key=GEMINI_KEY)
|
| 42 |
user_memory = {} # { user_id: { "history": [], "last_sync": timestamp, "last_activity": timestamp, "needs_sync": bool, "personality": str, "last_storyline_date": str, "gender": str } }
|
|
|
|
| 36 |
MEMORY_CLEANUP_TIMEOUT = 1800 # 30 minutes in seconds - remove inactive users
|
| 37 |
|
| 38 |
# small threshold to detect effectively-empty uploads (adjust as needed)
|
| 39 |
+
IMAGE_BLANK_THRESHOLD_BYTES = int(os.getenv("IMAGE_BLANK_THRESHOLD_BYTES", "10000"))
|
| 40 |
|
| 41 |
client = genai.Client(api_key=GEMINI_KEY)
|
| 42 |
user_memory = {} # { user_id: { "history": [], "last_sync": timestamp, "last_activity": timestamp, "needs_sync": bool, "personality": str, "last_storyline_date": str, "gender": str } }
|