Pendrokar commited on
Commit
4cca697
1 Parent(s): 502ca44

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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: