pratham0011 commited on
Commit
9842b2f
·
verified ·
1 Parent(s): a49bd26

Delete run_app.py

Browse files
Files changed (1) hide show
  1. run_app.py +0 -14
run_app.py DELETED
@@ -1,14 +0,0 @@
1
- import os
2
- import subprocess
3
-
4
- # Determine which app to run based on an environment variable
5
- app_type = os.environ.get("APP_TYPE", "streamlit").lower()
6
-
7
- if app_type == "streamlit":
8
- # Start Streamlit
9
- subprocess.run(["streamlit", "run", "streamlit_app.py"])
10
- elif app_type == "fastapi":
11
- # Start Uvicorn (FastAPI)
12
- subprocess.run(["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"])
13
- else:
14
- print(f"Unknown APP_TYPE: {app_type}")