andyangjunlong commited on
Commit
ee6311a
·
verified ·
1 Parent(s): 04503f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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__")