teaevo commited on
Commit
82f4770
1 Parent(s): 20a1bcd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -92,7 +92,7 @@ def chat(input, history=[]):
92
 
93
  # convert the tokens to text, and then split the responses into the right format
94
  response = tokenizer.decode(history[0]).split("<|endoftext|>")
95
- response = [(response[i], response[i + 1]) for i in range(0, len(response) - 1, 2)] # convert to tuples of list
96
 
97
  return response, history
98
 
@@ -152,8 +152,10 @@ chat_interface = gr.Interface(
152
  sql_interface = gr.Interface(
153
  fn=sqlquery,
154
  theme="default",
 
155
  inputs=gr.Textbox(prompt="You:"),
156
- outputs=gr.Textbox(),
 
157
  #live=True,
158
  #capture_session=True,
159
  title="ST SQL Chat",
 
92
 
93
  # convert the tokens to text, and then split the responses into the right format
94
  response = tokenizer.decode(history[0]).split("<|endoftext|>")
95
+ #response = [(response[i], response[i + 1]) for i in range(0, len(response) - 1, 2)] # convert to tuples of list
96
 
97
  return response, history
98
 
 
152
  sql_interface = gr.Interface(
153
  fn=sqlquery,
154
  theme="default",
155
+ css=".footer {display:none !important}",
156
  inputs=gr.Textbox(prompt="You:"),
157
+ #outputs=gr.Textbox(),
158
+ outputs=["chatbot"]
159
  #live=True,
160
  #capture_session=True,
161
  title="ST SQL Chat",