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 |
-
|
41 |
-
return
|
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
|
41 |
+
return text
|
42 |
app = gr.ChatInterface(chatbot)
|
43 |
app.launch()
|