Spaces:
Running
Running
Synced repo using 'sync_with_huggingface' Github Action
Browse files- 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 |
|