Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ def generate_text(input_text, history):
|
|
| 16 |
output = llm(full_conversation, max_tokens=1024, stop=["Q:", "\n"], echo=True)
|
| 17 |
response = output['choices'][0]['text']
|
| 18 |
history.append([input_text, response])
|
| 19 |
-
return
|
| 20 |
|
| 21 |
|
| 22 |
demo = gr.ChatInterface(generate_text)
|
|
|
|
| 16 |
output = llm(full_conversation, max_tokens=1024, stop=["Q:", "\n"], echo=True)
|
| 17 |
response = output['choices'][0]['text']
|
| 18 |
history.append([input_text, response])
|
| 19 |
+
return response
|
| 20 |
|
| 21 |
|
| 22 |
demo = gr.ChatInterface(generate_text)
|