Spaces:
Runtime error
Runtime error
fixed estimated_time
Browse files
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"]}.
|
|
|
|
|
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"]:
|