Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -71,7 +71,7 @@ def predict(request: gr.Request, *args, progress=gr.Progress(track_tqdm=True)):
|
|
71 |
payload["input"][key] = value
|
72 |
|
73 |
time.sleep(0.4)
|
74 |
-
response = requests.post("http://0.0.0.0:
|
75 |
|
76 |
|
77 |
if response.status_code == 201:
|
|
|
71 |
payload["input"][key] = value
|
72 |
|
73 |
time.sleep(0.4)
|
74 |
+
response = requests.post("http://0.0.0.0:8000/predictions", headers=headers, json=payload)
|
75 |
|
76 |
|
77 |
if response.status_code == 201:
|