cahya commited on
Commit
50e2ceb
1 Parent(s): 7f74f8c

fixed estimated_time

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -109,7 +109,9 @@ if st.button("Run"):
109
  print("result:", result)
110
  if "error" in result:
111
  if type(result["error"]) is str:
112
- st.write(f'{result["error"]}. Please try it again in about {result["estimated_time"]:.0f} seconds')
 
 
113
  else:
114
  if type(result["error"]) is list:
115
  for error in result["error"]:
 
109
  print("result:", result)
110
  if "error" in result:
111
  if type(result["error"]) is str:
112
+ st.write(f'{result["error"]}.')
113
+ if "estimated_time" in result:
114
+ st.write(f'Please try it again in about {result["estimated_time"]:.0f} seconds')
115
  else:
116
  if type(result["error"]) is list:
117
  for error in result["error"]: