Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ def chatbot(message, history):
|
|
| 37 |
airemember += "USER: " + human + "\nASSISTANT:" + assistant+"\n\n"
|
| 38 |
sendtoai = airemember + prompt
|
| 39 |
result = llm(sendtoai, **generation_kwargs)
|
| 40 |
-
text=result
|
| 41 |
return text
|
| 42 |
app = gr.ChatInterface(chatbot)
|
| 43 |
app.launch()
|
|
|
|
| 37 |
airemember += "USER: " + human + "\nASSISTANT:" + assistant+"\n\n"
|
| 38 |
sendtoai = airemember + prompt
|
| 39 |
result = llm(sendtoai, **generation_kwargs)
|
| 40 |
+
text=result["choices"][0]["text"].strip()
|
| 41 |
return text
|
| 42 |
app = gr.ChatInterface(chatbot)
|
| 43 |
app.launch()
|