Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,5 +19,5 @@ def predict(input, history=[]):
|
|
| 19 |
response = [(response[i], response[i + 1]) for i in range(0,len(response) - 1, 2)]
|
| 20 |
# convert to tuples of list
|
| 21 |
# print('response-->>'+str(response))
|
| 22 |
-
return response,
|
| 23 |
gradio.Interface(fn=predict,title=title,description=description,examples=examples,inputs=["text", "state"],outputs=["chatbot", "state"],theme="finlaymacklon/boxy_violet",).launch()
|
|
|
|
| 19 |
response = [(response[i], response[i + 1]) for i in range(0,len(response) - 1, 2)]
|
| 20 |
# convert to tuples of list
|
| 21 |
# print('response-->>'+str(response))
|
| 22 |
+
return response, history
|
| 23 |
gradio.Interface(fn=predict,title=title,description=description,examples=examples,inputs=["text", "state"],outputs=["chatbot", "state"],theme="finlaymacklon/boxy_violet",).launch()
|