Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -50,9 +50,9 @@ chat_history = []
|
|
50 |
def chat_output(inputs):
|
51 |
output = chat_interface(inputs)
|
52 |
answer = output.split('AI:')
|
53 |
-
if(len(answer) ==
|
54 |
-
chat_history.append((inputs, answer[
|
55 |
-
chat_history.append((inputs, answer[
|
56 |
return chat_history
|
57 |
|
58 |
template = """You are an AI having conversation with a human.
|
|
|
50 |
def chat_output(inputs):
|
51 |
output = chat_interface(inputs)
|
52 |
answer = output.split('AI:')
|
53 |
+
if(len(answer) == 2):
|
54 |
+
chat_history.append((inputs, answer[1]))
|
55 |
+
chat_history.append((inputs, answer[1]))
|
56 |
return chat_history
|
57 |
|
58 |
template = """You are an AI having conversation with a human.
|