Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,5 +18,7 @@ req_file = os.path.join(REPO_NAME, "requirements.txt")
|
|
| 18 |
if os.path.exists(req_file):
|
| 19 |
subprocess.run(["pip", "install", "--upgrade", "-r", req_file], check=True)
|
| 20 |
|
|
|
|
|
|
|
| 21 |
# Run the app
|
| 22 |
runpy.run_path(f"{REPO_NAME}/app.py", run_name="__main__")
|
|
|
|
| 18 |
if os.path.exists(req_file):
|
| 19 |
subprocess.run(["pip", "install", "--upgrade", "-r", req_file], check=True)
|
| 20 |
|
| 21 |
+
os.chdir(REPO_NAME)
|
| 22 |
+
|
| 23 |
# Run the app
|
| 24 |
runpy.run_path(f"{REPO_NAME}/app.py", run_name="__main__")
|