sophcheng commited on
Commit
c518ed1
·
verified ·
1 Parent(s): 29185ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -151,11 +151,9 @@ with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
151
  with gr.Row():
152
  with gr.Column():
153
  question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
154
- answer = gr.Textbox(label="AI-nstein Response", placeholder="AI-nstein will respond here...", interactive=False, lines=10)
155
- submit_button = gr.Button("Submit")
156
-
157
- answer = gr.Textbox(label="ChessBot Response", placeholder="ChessBot's response is...", interactive=False, lines=5)
158
  submit_button = gr.Button("Submit")
 
 
159
 
160
  def display_response(question):
161
  response, confidence_score = query_model(question)
@@ -163,7 +161,7 @@ with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
163
 
164
  submit_button.click(fn=display_response, inputs=question, outputs=None)
165
 
166
- submit_button.click(fn=query_model, inputs=question, outputs=answer)
167
 
168
 
169
 
 
151
  with gr.Row():
152
  with gr.Column():
153
  question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
 
 
 
 
154
  submit_button = gr.Button("Submit")
155
+ answer = gr.Textbox(label="AI-nstein Response", placeholder="AI-nstein will respond here...", interactive=False, lines=10)
156
+ submit_button.click(fn=query_model, inputs=question, outputs=answer)
157
 
158
  def display_response(question):
159
  response, confidence_score = query_model(question)
 
161
 
162
  submit_button.click(fn=display_response, inputs=question, outputs=None)
163
 
164
+
165
 
166
 
167