Spaces:
Running
Running
Synced repo using 'sync_with_huggingface' Github Action
Browse files- gradio_app.py +5 -3
gradio_app.py
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
import os
|
2 |
import sys
|
3 |
|
4 |
-
from torch import Value
|
5 |
-
|
6 |
if "APP_PATH" in os.environ:
|
7 |
-
|
|
|
|
|
|
|
|
|
8 |
|
9 |
import gradio as gr
|
10 |
|
|
|
1 |
import os
|
2 |
import sys
|
3 |
|
|
|
|
|
4 |
if "APP_PATH" in os.environ:
|
5 |
+
os.chdir(os.environ["APP_PATH"])
|
6 |
+
# fix sys.path for import
|
7 |
+
sys.path.append(os.getcwd())
|
8 |
+
|
9 |
+
print(os.getenv("XDG_CACHE_HOME"))
|
10 |
|
11 |
import gradio as gr
|
12 |
|