fffiloni commited on
Commit
d9bbdb2
1 Parent(s): 6321236

add gradio_api to value path

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