Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -259,7 +259,10 @@ def respond(message, history, model, temperature, num_calls, use_web_search, is_
|
|
259 |
fallback_model = "mistralai/Mistral-7B-Instruct-v0.3"
|
260 |
yield from respond(message, history, fallback_model, temperature, num_calls, use_web_search)
|
261 |
else:
|
262 |
-
yield f"An error occurred with the {model} model: {str(e)}. Please try again or select a different model.
|
|
|
|
|
|
|
263 |
logging.basicConfig(level=logging.DEBUG)
|
264 |
|
265 |
def get_response_from_cloudflare(prompt, context, query, num_calls=3, temperature=0.2, search_type="pdf"):
|
|
|
259 |
fallback_model = "mistralai/Mistral-7B-Instruct-v0.3"
|
260 |
yield from respond(message, history, fallback_model, temperature, num_calls, use_web_search)
|
261 |
else:
|
262 |
+
yield f"An error occurred with the {model} model: {str(e)}. Please try again or select a different model."
|
263 |
+
finally:
|
264 |
+
pass
|
265 |
+
|
266 |
logging.basicConfig(level=logging.DEBUG)
|
267 |
|
268 |
def get_response_from_cloudflare(prompt, context, query, num_calls=3, temperature=0.2, search_type="pdf"):
|