Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -853,7 +853,7 @@ def synthandreturn(text):
|
|
853 |
result = router.predict(text, model.lower(), api_name="/synthesize")
|
854 |
break
|
855 |
except:
|
856 |
-
attempt_count
|
857 |
raise gr.Error('Unable to call API, please try again')
|
858 |
print('Done with', model)
|
859 |
# try:
|
|
|
853 |
result = router.predict(text, model.lower(), api_name="/synthesize")
|
854 |
break
|
855 |
except:
|
856 |
+
attempt_count += 1
|
857 |
raise gr.Error('Unable to call API, please try again')
|
858 |
print('Done with', model)
|
859 |
# try:
|