Spaces:
Sleeping
Sleeping
first commit
Browse files
app.py
CHANGED
@@ -250,6 +250,8 @@ def http_bot(
|
|
250 |
try:
|
251 |
# Stream output
|
252 |
response = requests.post(url, headers=headers, json=pload, timeout=100, stream=True)
|
|
|
|
|
253 |
for chunk in response.iter_lines(decode_unicode=False, delimiter=b"\0"):
|
254 |
if chunk:
|
255 |
res = json.loads(chunk.decode())
|
|
|
250 |
try:
|
251 |
# Stream output
|
252 |
response = requests.post(url, headers=headers, json=pload, timeout=100, stream=True)
|
253 |
+
print("response")
|
254 |
+
logger.info(reponse)
|
255 |
for chunk in response.iter_lines(decode_unicode=False, delimiter=b"\0"):
|
256 |
if chunk:
|
257 |
res = json.loads(chunk.decode())
|