Spaces:
Runtime error
Runtime error
KvrParaskevi
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -49,10 +49,9 @@ chat_history = []
|
|
49 |
|
50 |
def chat_output(inputs):
|
51 |
output = chat_interface(inputs)
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
chat_history.append((inputs, answer[1]))
|
56 |
return chat_history
|
57 |
|
58 |
template = """You are an AI having conversation with a human.
|
|
|
49 |
|
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 |
|
57 |
template = """You are an AI having conversation with a human.
|