fffiloni commited on
Commit
51d1244
1 Parent(s): 00aa31b

fix gradio api file yrl

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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