Spaces:
Running
on
L40S
Running
on
L40S
add gradio_api to value path
Browse files
app.py
CHANGED
@@ -66,7 +66,7 @@ def predict(request: gr.Request, *args, progress=gr.Progress(track_tqdm=True)):
|
|
66 |
for i, key in enumerate(names):
|
67 |
value = args[i]
|
68 |
if value and (os.path.exists(str(value))):
|
69 |
-
value = f"{base_url}/file=" + value
|
70 |
if value is not None and value != "":
|
71 |
payload["input"][key] = value
|
72 |
|
|
|
66 |
for i, key in enumerate(names):
|
67 |
value = args[i]
|
68 |
if value and (os.path.exists(str(value))):
|
69 |
+
value = f"{base_url}/gradio_api/file=" + value
|
70 |
if value is not None and value != "":
|
71 |
payload["input"][key] = value
|
72 |
|