Maria Tsilimos
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -239,12 +239,18 @@ if source_type:
|
|
239 |
mime="application/zip",)
|
240 |
|
241 |
|
242 |
-
|
243 |
-
experiment.end()
|
244 |
else:
|
245 |
st.warning("No meaningful text found to process. Please enter a URL or text.")
|
|
|
246 |
|
247 |
-
except
|
248 |
-
st.error(f"
|
|
|
|
|
|
|
249 |
|
250 |
st.write(f"Number of times you requested results: **{st.session_state['source_type_attempts']}/{max_attempts}**")
|
|
|
|
|
|
|
|
239 |
mime="application/zip",)
|
240 |
|
241 |
|
242 |
+
st.divider()
|
|
|
243 |
else:
|
244 |
st.warning("No meaningful text found to process. Please enter a URL or text.")
|
245 |
+
|
246 |
|
247 |
+
except Exception as e:
|
248 |
+
st.error(f"An unexpected error occurred: {e}")
|
249 |
+
finally:
|
250 |
+
if comet_initialized and experiment:
|
251 |
+
experiment.end()
|
252 |
|
253 |
st.write(f"Number of times you requested results: **{st.session_state['source_type_attempts']}/{max_attempts}**")
|
254 |
+
|
255 |
+
|
256 |
+
|