Update app.py
Browse files
app.py
CHANGED
@@ -153,7 +153,7 @@ with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
|
|
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 = "In {book}" and gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
|
157 |
gr.Markdown(space)
|
158 |
submit_button = gr.Button("Submit")
|
159 |
answer = gr.Textbox(label="LitBot Response", placeholder="LitBot will respond here...", interactive=False, lines=30)
|
|
|
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 = f"In {book}" and gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
|
157 |
gr.Markdown(space)
|
158 |
submit_button = gr.Button("Submit")
|
159 |
answer = gr.Textbox(label="LitBot Response", placeholder="LitBot will respond here...", interactive=False, lines=30)
|