tea-phan-y commited on
Commit
c6493da
·
verified ·
1 Parent(s): df22266

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -155,10 +155,11 @@ with gr.Blocks(theme='katiiegomez/litbot-revamped') as demo:
155
  interactive = True )
156
  question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
157
  gr.Markdown(space)
158
- submit_button.click(fn=query_model, inputs=question and book, outputs=answer)
159
- answer = gr.Textbox(label="LitBot Response", placeholder="LitBot will respond here...", interactive=False, lines=30)
160
  submit_button = gr.Button("Submit")
161
  submit_button.click(fn=query_model, inputs=question and book, outputs=answer)
 
 
 
162
 
163
  # Launch the Gradio app to allow user interaction
164
  demo.launch(share=True)
 
155
  interactive = True )
156
  question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
157
  gr.Markdown(space)
 
 
158
  submit_button = gr.Button("Submit")
159
  submit_button.click(fn=query_model, inputs=question and book, outputs=answer)
160
+ submit_button.click(fn=query_model, inputs=question and book, outputs=answer)
161
+ answer = gr.Textbox(label="LitBot Response", placeholder="LitBot will respond here...", interactive=False, lines=30)
162
+
163
 
164
  # Launch the Gradio app to allow user interaction
165
  demo.launch(share=True)