Spaces:
Sleeping
Sleeping
so it hates objects
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ def respond(message, history):
|
|
| 16 |
response = ""
|
| 17 |
for msg in client.chat_completion(messages, max_tokens=200, temperature=1, top_p=0.5):
|
| 18 |
response += msg
|
| 19 |
-
yield response.
|
| 20 |
|
| 21 |
chatbot = gr.ChatInterface(fn=respond, title="Magic 8 Ball", description="Discover your fortune...", editable=True)
|
| 22 |
chatbot.launch()
|
|
|
|
| 16 |
response = ""
|
| 17 |
for msg in client.chat_completion(messages, max_tokens=200, temperature=1, top_p=0.5):
|
| 18 |
response += msg
|
| 19 |
+
yield response.strip()
|
| 20 |
|
| 21 |
chatbot = gr.ChatInterface(fn=respond, title="Magic 8 Ball", description="Discover your fortune...", editable=True)
|
| 22 |
chatbot.launch()
|