Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
bug fix
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ def predict(message, chatbot):
|
|
37 |
#response_json_object = json.loads(response.text)
|
38 |
#return response_json_object[0]['generated_text']
|
39 |
|
40 |
-
response = requests.post(
|
41 |
|
42 |
partial_message = ""
|
43 |
for line in response.iter_lines():
|
|
|
37 |
#response_json_object = json.loads(response.text)
|
38 |
#return response_json_object[0]['generated_text']
|
39 |
|
40 |
+
response = requests.post(api_url, headers=headers, data=json.dumps(data), auth=('hf', hf_token), stream=True)
|
41 |
|
42 |
partial_message = ""
|
43 |
for line in response.iter_lines():
|