Pepguy commited on
Commit
7b132f2
·
verified ·
1 Parent(s): 9c81a49

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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", "512"))
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 } }