Spaces:
Sleeping
Sleeping
check path
Browse files
app.py
CHANGED
@@ -11,8 +11,8 @@ from spaces.zero.client import _get_token
|
|
11 |
# create a static directory to store the static files
|
12 |
static_dir = Path('./static')
|
13 |
static_dir.mkdir(parents=True, exist_ok=True)
|
14 |
-
|
15 |
-
export GRADIO_ALLOWED_PATHS="/static"
|
16 |
print(os.environ["GRADIO_ALLOWED_PATHS"] )
|
17 |
|
18 |
@spaces.GPU(duration=10)
|
|
|
11 |
# create a static directory to store the static files
|
12 |
static_dir = Path('./static')
|
13 |
static_dir.mkdir(parents=True, exist_ok=True)
|
14 |
+
os.environ["GRADIO_ALLOWED_PATHS"] = str(static_dir.resolve())
|
15 |
+
#export GRADIO_ALLOWED_PATHS="/static"
|
16 |
print(os.environ["GRADIO_ALLOWED_PATHS"] )
|
17 |
|
18 |
@spaces.GPU(duration=10)
|