xiaoyao9184 commited on
Commit
92c7bae
·
verified ·
1 Parent(s): 52011e3

Synced repo using 'sync_with_huggingface' Github Action

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -34,7 +34,7 @@ install_model()
34
 
35
  # fix sys.path for import
36
  print(f"LOCAL_PATH: {os.path.abspath(LOCAL_PATH)}")
37
- sys.path.insert(0, os.path.abspath(LOCAL_PATH))
38
 
39
  # run gradio
40
  import re
 
34
 
35
  # fix sys.path for import
36
  print(f"LOCAL_PATH: {os.path.abspath(LOCAL_PATH)}")
37
+ os.environ["APP_PATH"] = os.path.abspath(LOCAL_PATH)
38
 
39
  # run gradio
40
  import re