Upload folder using huggingface_hub
Browse files- streamlit_app.py +8 -0
streamlit_app.py
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import os
|
| 2 |
+
import runpy
|
| 3 |
+
|
| 4 |
+
# Streamlit App Entrypoint for Hugging Face Spaces & Streamlit Cloud
|
| 5 |
+
# This replaces Hugging Face's boilerplate template and redirects to our real app in scripts/app.py
|
| 6 |
+
if __name__ == "__main__":
|
| 7 |
+
script_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "scripts", "app.py")
|
| 8 |
+
runpy.run_path(script_path, run_name="__main__")
|