Spaces:
Runtime error
Runtime error
kelvinyasu
commited on
Commit
•
3519ac7
1
Parent(s):
639b64b
Update app.py
Browse files
app.py
CHANGED
@@ -41,6 +41,7 @@ def predict(message, chatbot):
|
|
41 |
}
|
42 |
|
43 |
response = requests.post(api_url, headers=headers, data=json.dumps(data), auth=('Bearer', hf_token), stream=True)
|
|
|
44 |
|
45 |
partial_message = ""
|
46 |
for line in response.iter_lines():
|
|
|
41 |
}
|
42 |
|
43 |
response = requests.post(api_url, headers=headers, data=json.dumps(data), auth=('Bearer', hf_token), stream=True)
|
44 |
+
print(response)
|
45 |
|
46 |
partial_message = ""
|
47 |
for line in response.iter_lines():
|