Spaces:
Running
Running
Dan Flower
commited on
Commit
·
f9dc060
1
Parent(s):
d5b6359
troubleshooting model path issue
Browse files- streamlit_app.py +2 -0
streamlit_app.py
CHANGED
|
@@ -34,6 +34,8 @@ if not os.path.exists(MODEL_PATH):
|
|
| 34 |
st.text(f"Output: {e.output if hasattr(e, 'output') else 'N/A'}")
|
| 35 |
st.stop()
|
| 36 |
|
|
|
|
|
|
|
| 37 |
|
| 38 |
# Add local subdirectories to Python path
|
| 39 |
sys.path.append(os.path.join(os.path.dirname(__file__), "modules"))
|
|
|
|
| 34 |
st.text(f"Output: {e.output if hasattr(e, 'output') else 'N/A'}")
|
| 35 |
st.stop()
|
| 36 |
|
| 37 |
+
st.markdown("## 📁 /tmp/models content:")
|
| 38 |
+
st.text('\n'.join(os.listdir("/tmp/models")))
|
| 39 |
|
| 40 |
# Add local subdirectories to Python path
|
| 41 |
sys.path.append(os.path.join(os.path.dirname(__file__), "modules"))
|