bluestpanda commited on
Commit
b9400db
·
1 Parent(s): a7840ea

Fix Streamlit execution - add error handling

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -675,6 +675,11 @@ ollama pull llama3.2:3b
675
  """)
676
 
677
 
678
- if __name__ == "__main__":
 
 
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