fffiloni commited on
Commit
49771b5
1 Parent(s): a21d6ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -104,8 +104,7 @@ def predict(request: gr.Request, *args, progress=gr.Progress(track_tqdm=True)):
104
  payload = {"input": {}}
105
 
106
 
107
- parsed_url = urlparse(str(request.url))
108
- base_url = parsed_url.scheme + "://" + parsed_url.netloc
109
  for i, key in enumerate(names):
110
  value = args[i]
111
  if value and (os.path.exists(str(value))):
 
104
  payload = {"input": {}}
105
 
106
 
107
+ base_url = "http://0.0.0.0:7860"
 
108
  for i, key in enumerate(names):
109
  value = args[i]
110
  if value and (os.path.exists(str(value))):