xiaoyao9184 commited on
Commit
2a3759a
·
verified ·
1 Parent(s): 805236e

Synced repo using 'sync_with_huggingface' Github Action

Browse files
Files changed (1) hide show
  1. gradio_app.py +6 -1
gradio_app.py CHANGED
@@ -1,4 +1,9 @@
1
-
 
 
 
 
 
2
 
3
  import gradio as gr
4
 
 
1
+ import os
2
+ import sys
3
+ if "APP_PATH" in os.environ:
4
+ os.chdir(os.environ["APP_PATH"])
5
+ # fix sys.path for import
6
+ sys.path.append(os.getcwd())
7
 
8
  import gradio as gr
9