Spaces:
Sleeping
Sleeping
Commit
•
ef87e14
1
Parent(s):
6c70efd
Update app.py
Browse files
app.py
CHANGED
@@ -56,8 +56,10 @@ def chat(message,
|
|
56 |
},
|
57 |
}
|
58 |
|
|
|
59 |
response = requests.post(model, headers=headers, data=json.dumps(data), auth=("hf", hf_token), stream=True)
|
60 |
|
|
|
61 |
partial_message = ""
|
62 |
for line in response.iter_lines():
|
63 |
if line: # filter out keep-alive new lines
|
|
|
56 |
},
|
57 |
}
|
58 |
|
59 |
+
print("MODEL" + model)
|
60 |
response = requests.post(model, headers=headers, data=json.dumps(data), auth=("hf", hf_token), stream=True)
|
61 |
|
62 |
+
|
63 |
partial_message = ""
|
64 |
for line in response.iter_lines():
|
65 |
if line: # filter out keep-alive new lines
|