Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -113,7 +113,7 @@ with gr.Blocks() as demo:
|
|
113 |
"stream": True,
|
114 |
}
|
115 |
|
116 |
-
with requests.post(
|
117 |
for response in r.iter_lines():
|
118 |
if len(response) > 0:
|
119 |
text = response.decode()
|
|
|
113 |
"stream": True,
|
114 |
}
|
115 |
|
116 |
+
with requests.post(API_URL, headers=HEADERS, data=json.dumps(data), stream=True) as r:
|
117 |
for response in r.iter_lines():
|
118 |
if len(response) > 0:
|
119 |
text = response.decode()
|