Spaces:
Running
on
Zero
Running
on
Zero
allow
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ 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)
|
19 |
def predict(request: gr.Request,text_input):
|
|
|
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'] = ",os.environ["GRADIO_ALLOWED_PATHS"] )
|
17 |
|
18 |
@spaces.GPU(duration=10)
|
19 |
def predict(request: gr.Request,text_input):
|