Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,7 +7,7 @@ For more information on `huggingface_hub` Inference API support, please check th
|
|
| 7 |
client = InferenceClient("kronos25/Temporal_Chatbot")
|
| 8 |
|
| 9 |
def predict(message, history):
|
| 10 |
-
for message in client.chat_completion(history,max_tokens=
|
| 11 |
token = message.choices[0].delta.content
|
| 12 |
response += token
|
| 13 |
yield response
|
|
|
|
| 7 |
client = InferenceClient("kronos25/Temporal_Chatbot")
|
| 8 |
|
| 9 |
def predict(message, history):
|
| 10 |
+
for message in client.chat_completion(history,max_tokens=512):
|
| 11 |
token = message.choices[0].delta.content
|
| 12 |
response += token
|
| 13 |
yield response
|