Spaces:
Runtime error
Runtime error
fix gradio api file yrl
Browse files
app.py
CHANGED
|
@@ -58,7 +58,7 @@ def predict(request: gr.Request, *args, progress=gr.Progress(track_tqdm=True)):
|
|
| 58 |
for i, key in enumerate(names):
|
| 59 |
value = args[i]
|
| 60 |
if value and (os.path.exists(str(value))):
|
| 61 |
-
value = f"{base_url}/file=" + value
|
| 62 |
if value is not None and value != "":
|
| 63 |
payload["input"][key] = value
|
| 64 |
|
|
|
|
| 58 |
for i, key in enumerate(names):
|
| 59 |
value = args[i]
|
| 60 |
if value and (os.path.exists(str(value))):
|
| 61 |
+
value = f"{base_url}/gradio_api/file=" + value
|
| 62 |
if value is not None and value != "":
|
| 63 |
payload["input"][key] = value
|
| 64 |
|