Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ def response(message, history):
|
|
| 20 |
print(history)
|
| 21 |
output = llm(message,max_tokens=32)
|
| 22 |
print(output)
|
| 23 |
-
return
|
| 24 |
|
| 25 |
gr.ChatInterface(
|
| 26 |
fn=response,
|
|
|
|
| 20 |
print(history)
|
| 21 |
output = llm(message,max_tokens=32)
|
| 22 |
print(output)
|
| 23 |
+
return output["choices"][0]["text"].strip()
|
| 24 |
|
| 25 |
gr.ChatInterface(
|
| 26 |
fn=response,
|