tea-phan-y commited on
Commit
344d411
·
verified ·
1 Parent(s): 156d401

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -153,7 +153,7 @@ with gr.Blocks(theme='freddyaboulton/dracula_revamped') as demo:
153
  question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
154
  answer = gr.Textbox(label="LitBot Response", placeholder="LitBot will respond here...", interactive=False, lines=20)
155
  submit_button = gr.Button("Submit")
156
- submit_button.click(fn=query_model, inputs=question+book, outputs=answer)
157
 
158
 
159
  # Launch the Gradio app to allow user interaction
 
153
  question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
154
  answer = gr.Textbox(label="LitBot Response", placeholder="LitBot will respond here...", interactive=False, lines=20)
155
  submit_button = gr.Button("Submit")
156
+ submit_button.click(fn=query_model, inputs=question and book, outputs=answer)
157
 
158
 
159
  # Launch the Gradio app to allow user interaction