Spaces:
Building
Building
bluestpanda commited on
Commit ·
b9400db
1
Parent(s): a7840ea
Fix Streamlit execution - add error handling
Browse files
app.py
CHANGED
|
@@ -675,6 +675,11 @@ ollama pull llama3.2:3b
|
|
| 675 |
""")
|
| 676 |
|
| 677 |
|
| 678 |
-
|
|
|
|
|
|
|
| 679 |
main()
|
|
|
|
|
|
|
|
|
|
| 680 |
|
|
|
|
| 675 |
""")
|
| 676 |
|
| 677 |
|
| 678 |
+
# Streamlit runs the entire script on each interaction
|
| 679 |
+
# We don't need the __name__ guard here
|
| 680 |
+
try:
|
| 681 |
main()
|
| 682 |
+
except Exception as e:
|
| 683 |
+
st.error(f"An error occurred: {e}")
|
| 684 |
+
st.exception(e)
|
| 685 |
|