Spaces:
Runtime error
Runtime error
Marcus Posey
commited on
Commit
·
f8c6eb6
1
Parent(s):
e69ee5c
Update timeout message
Browse files
app.py
CHANGED
@@ -63,10 +63,10 @@ class ModelManager:
|
|
63 |
return response
|
64 |
except (httpx.ReadTimeout, httpx.ConnectTimeout) as e:
|
65 |
print(f"Timeout while getting response from {model_name}: {str(e)}")
|
66 |
-
return f"
|
67 |
except Exception as e:
|
68 |
print(f"Error getting response from {model_name}: {str(e)}")
|
69 |
-
return f"Error: Could not get response from {model_name}. Please try again."
|
70 |
|
71 |
async def get_all_model_responses_async(self, prompt):
|
72 |
tasks = [
|
|
|
63 |
return response
|
64 |
except (httpx.ReadTimeout, httpx.ConnectTimeout) as e:
|
65 |
print(f"Timeout while getting response from {model_name}: {str(e)}")
|
66 |
+
return f"⚠️ Model {model_name} is waking up... This may take a few minutes. Please wait and try again shortly. ⏳"
|
67 |
except Exception as e:
|
68 |
print(f"Error getting response from {model_name}: {str(e)}")
|
69 |
+
return f"Error: Could not get response from {model_name}. Please try again in a few minutes."
|
70 |
|
71 |
async def get_all_model_responses_async(self, prompt):
|
72 |
tasks = [
|