tea-phan-y commited on
Commit
c0e5f5a
·
verified ·
1 Parent(s): 321e1f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -3
app.py CHANGED
@@ -114,14 +114,24 @@ welcome_message = """
114
  """
115
 
116
  topics = """
117
- ### Feel Free to ask me anything from the topics below!
118
  - Themes
119
  - Historical Context
120
  - Symbolism
121
  - Potential Reading Challenges
122
  - Controversies
123
  - Book Background Information
124
-
 
 
 
 
 
 
 
 
 
 
125
  """
126
 
127
  # Setup the Gradio Blocks interface with custom layout components
@@ -133,7 +143,7 @@ with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
133
  with gr.Row():
134
  with gr.Column():
135
  question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
136
- answer = gr.Textbox(label="LitBot Response", placeholder="LitBot will respond here...", interactive=False, lines=30)
137
  submit_button = gr.Button("Submit")
138
  submit_button.click(fn=query_model, inputs=question, outputs=answer)
139
 
 
114
  """
115
 
116
  topics = """
117
+ ### Feel free to ask me anything from the topics below!
118
  - Themes
119
  - Historical Context
120
  - Symbolism
121
  - Potential Reading Challenges
122
  - Controversies
123
  - Book Background Information
124
+ ### Or ask me about any of these books:
125
+ - The Great Gatsby
126
+ - The Crucible
127
+ - Fahrenheit 451
128
+ - Of Mice and Men
129
+ - To Kill a Mockingbird
130
+ - Romeo and Juliet
131
+ - The Catcher in the Rye
132
+ - Pride and Prejudice
133
+ - Lord of the Flies
134
+ - Hamlet
135
  """
136
 
137
  # Setup the Gradio Blocks interface with custom layout components
 
143
  with gr.Row():
144
  with gr.Column():
145
  question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
146
+ answer = gr.Textbox(label="LitBot Response", placeholder="LitBot will respond here...", interactive=False, lines=10)
147
  submit_button = gr.Button("Submit")
148
  submit_button.click(fn=query_model, inputs=question, outputs=answer)
149