tea-phan-y commited on
Commit
1069ecb
·
verified ·
1 Parent(s): ca02b62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -149,6 +149,10 @@ with gr.Blocks(theme='freddyaboulton/dracula_revamped') as demo:
149
  # gr.Markdown(books2)
150
  with gr.Row():
151
  with gr.Column():
 
 
 
 
152
  question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
153
  answer = gr.Textbox(label="LitBot Response", placeholder="LitBot will respond here...", interactive=False, lines=20)
154
  submit_button = gr.Button("Submit")
 
149
  # gr.Markdown(books2)
150
  with gr.Row():
151
  with gr.Column():
152
+ book = gr.Dropdown(
153
+ ["The Great Gatsby", "The Crucible", "Fahrenheit 451", "Of Mice and Men", "To Kill a Mockingbird", "Romeo and Juliet", "The Catcher in the Rye", "Pride and Prejudice", "Lord of the Flies", "Hamlet"],
154
+ label = "Choose a book!",
155
+ interactive = True )
156
  question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
157
  answer = gr.Textbox(label="LitBot Response", placeholder="LitBot will respond here...", interactive=False, lines=20)
158
  submit_button = gr.Button("Submit")