Update app.py
Browse files
app.py
CHANGED
@@ -103,7 +103,7 @@ def predict(input, conversation_history): #history=[]):
|
|
103 |
|
104 |
return response #, history
|
105 |
|
106 |
-
def chatbot_interface(user_input
|
107 |
global conversation_history
|
108 |
|
109 |
conversation_history.append(user_input)
|
@@ -124,8 +124,8 @@ def sqlquery(input):
|
|
124 |
|
125 |
chat_interface = gr.Interface(
|
126 |
fn=chatbot_interface,
|
127 |
-
inputs=["text"
|
128 |
-
outputs=["
|
129 |
live=True,
|
130 |
|
131 |
)
|
|
|
103 |
|
104 |
return response #, history
|
105 |
|
106 |
+
def chatbot_interface(user_input):
|
107 |
global conversation_history
|
108 |
|
109 |
conversation_history.append(user_input)
|
|
|
124 |
|
125 |
chat_interface = gr.Interface(
|
126 |
fn=chatbot_interface,
|
127 |
+
inputs=["text"],
|
128 |
+
outputs=["chatbot"],
|
129 |
live=True,
|
130 |
|
131 |
)
|