Spaces:
Sleeping
Sleeping
Error fixes
Browse files
app.py
CHANGED
|
@@ -36,8 +36,8 @@ class HuggingFaceInterferenceClientRunnable(Runnable):
|
|
| 36 |
self.top_p = top_p
|
| 37 |
|
| 38 |
@retry(
|
| 39 |
-
stop=stop_sfter_attempt(3)
|
| 40 |
-
wait=wait_exponential(multiplier=1, min=4, max=10)
|
| 41 |
retry=retry_if_exception_type((requests.exceptions.ConnectionError, requests.exceptions.Timeout))
|
| 42 |
)
|
| 43 |
|
|
|
|
| 36 |
self.top_p = top_p
|
| 37 |
|
| 38 |
@retry(
|
| 39 |
+
stop=stop_sfter_attempt(3),
|
| 40 |
+
wait=wait_exponential(multiplier=1, min=4, max=10),
|
| 41 |
retry=retry_if_exception_type((requests.exceptions.ConnectionError, requests.exceptions.Timeout))
|
| 42 |
)
|
| 43 |
|