HamzaNaser commited on
Commit
1e2ac4e
·
verified ·
1 Parent(s): 227af06

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -37,7 +37,7 @@ def run_model(Dialects):
37
  return output[0]['generated_text']
38
  else:
39
  wait_time = int((hold_time - time.time()) + 35)
40
- if wait_time <= 0:
41
  return f'Model is being loaded, please try again in {wait_time} seconds.'
42
  else:
43
  return 'Taking longer than usual to load please wait or refresh the page.'
 
37
  return output[0]['generated_text']
38
  else:
39
  wait_time = int((hold_time - time.time()) + 35)
40
+ if wait_time >= 0:
41
  return f'Model is being loaded, please try again in {wait_time} seconds.'
42
  else:
43
  return 'Taking longer than usual to load please wait or refresh the page.'