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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -155,10 +155,10 @@ 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
- answer = gr.Textbox(label="LitBot Response", placeholder="LitBot will respond here...", interactive=False, lines=20)
 
159
  submit_button = gr.Button("Submit")
160
  submit_button.click(fn=query_model, inputs=question and book, outputs=answer)
161
 
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.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)