Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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
|