Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -37,10 +37,6 @@ mongo_client = MongoClient(mongoURI)
|
|
37 |
db = mongo_client['Scarlett']
|
38 |
chat_collection = db['chats']
|
39 |
|
40 |
-
idefics_processor = AutoProcessor.from_pretrained(model1)
|
41 |
-
idefics_client = InferenceClient(model2)
|
42 |
-
tokenizer = AutoTokenizer.from_pretrained(model1)
|
43 |
-
|
44 |
local_chat_history = OrderedDict()
|
45 |
MAX_LOCAL_USERS = 5
|
46 |
|
@@ -215,7 +211,7 @@ def keep_alive():
|
|
215 |
temperature=0.1,
|
216 |
top_p=0.1,
|
217 |
)
|
218 |
-
print(request
|
219 |
except Exception as e:
|
220 |
print(f"Keep-alive request failed: {e}")
|
221 |
time.sleep(1800)
|
|
|
37 |
db = mongo_client['Scarlett']
|
38 |
chat_collection = db['chats']
|
39 |
|
|
|
|
|
|
|
|
|
40 |
local_chat_history = OrderedDict()
|
41 |
MAX_LOCAL_USERS = 5
|
42 |
|
|
|
211 |
temperature=0.1,
|
212 |
top_p=0.1,
|
213 |
)
|
214 |
+
print(request)
|
215 |
except Exception as e:
|
216 |
print(f"Keep-alive request failed: {e}")
|
217 |
time.sleep(1800)
|