Spaces:
Build error
Build error
ShAnSantosh
commited on
Commit
•
fafaccd
1
Parent(s):
9d6871d
Update app.py
Browse files
app.py
CHANGED
@@ -67,7 +67,7 @@ def predict(sentence, history=[]):
|
|
67 |
reply = [random.choice(intent['responses'])]
|
68 |
history.append((sentence, reply))
|
69 |
response = [(history[i], history[i+1]) for i in range(0, len(history)-1, 2)]
|
70 |
-
return
|
71 |
|
72 |
import gradio as gr
|
73 |
|
|
|
67 |
reply = [random.choice(intent['responses'])]
|
68 |
history.append((sentence, reply))
|
69 |
response = [(history[i], history[i+1]) for i in range(0, len(history)-1, 2)]
|
70 |
+
return response, history
|
71 |
|
72 |
import gradio as gr
|
73 |
|