Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -50,7 +50,7 @@ chat_history = []
|
|
| 50 |
def chat_output(inputs):
|
| 51 |
output = chat_interface(inputs)
|
| 52 |
answer_after_input = output.split('AI:')
|
| 53 |
-
answer = answer_after_input.split('Human:')
|
| 54 |
chat_history.append((inputs, answer[0]))
|
| 55 |
return chat_history
|
| 56 |
|
|
|
|
| 50 |
def chat_output(inputs):
|
| 51 |
output = chat_interface(inputs)
|
| 52 |
answer_after_input = output.split('AI:')
|
| 53 |
+
answer = answer_after_input[1].split('Human:')
|
| 54 |
chat_history.append((inputs, answer[0]))
|
| 55 |
return chat_history
|
| 56 |
|