teaevo commited on
Commit
12f505b
·
1 Parent(s): a860532

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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, table=gr.inputs.Textbox()):
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", "text"],
128
- outputs=["text"],
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
  )