Update app.py
Browse files
app.py
CHANGED
|
@@ -135,6 +135,9 @@ books = """
|
|
| 135 |
- Lord of the Flies
|
| 136 |
- Hamlet
|
| 137 |
"""
|
|
|
|
|
|
|
|
|
|
| 138 |
|
| 139 |
|
| 140 |
# Setup the Gradio Blocks interface with custom layout components
|
|
@@ -151,6 +154,7 @@ with gr.Blocks(theme='katiiegomez/litbot-revamped') as demo:
|
|
| 151 |
label = "Choose a book!",
|
| 152 |
interactive = True )
|
| 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)
|
|
|
|
| 135 |
- Lord of the Flies
|
| 136 |
- Hamlet
|
| 137 |
"""
|
| 138 |
+
space = """
|
| 139 |
+
### ps
|
| 140 |
+
"""
|
| 141 |
|
| 142 |
|
| 143 |
# Setup the Gradio Blocks interface with custom layout components
|
|
|
|
| 154 |
label = "Choose a book!",
|
| 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)
|