bluestpanda commited on
Commit
4c2ecb4
·
1 Parent(s): c130e91

Simplify app startup and add .gitignore

Browse files
Files changed (3) hide show
  1. .gitignore +14 -0
  2. __pycache__/app.cpython-311.pyc +0 -0
  3. app.py +2 -7
.gitignore ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ __pycache__/
2
+ *.pyc
3
+ *.pyo
4
+ *.pyd
5
+ .Python
6
+ *.so
7
+ *.egg
8
+ *.egg-info/
9
+ dist/
10
+ build/
11
+ .env
12
+ .venv
13
+ venv/
14
+
__pycache__/app.cpython-311.pyc CHANGED
Binary files a/__pycache__/app.cpython-311.pyc and b/__pycache__/app.cpython-311.pyc differ
 
app.py CHANGED
@@ -675,11 +675,6 @@ ollama pull llama3.2:3b
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
 
 
675
  """)
676
 
677
 
678
+ # Call main function - Streamlit will handle errors
679
+ main()
 
 
 
 
 
680