kgarcia commited on
Commit
0aa8f43
·
verified ·
1 Parent(s): 8dff26b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -142,14 +142,14 @@ subtopics = """
142
  # Setup the Gradio Blocks interface with custom layout components
143
  with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
144
  gr.Markdown(welcome_message) # Display the formatted welcome message
145
- with gr.Column():
146
- gr.Markdown(topics) # Show the topics on the left side
147
- gr.Markdown(subtopics)
148
- with gr.Column():
149
- question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
150
- answer = gr.Textbox(label="ScholarSage Response", placeholder="ScholarSage will respond here...", interactive=False, lines=10)
151
- submit_button = gr.Button("Submit")
152
- submit_button.click(fn=query_model, inputs=question, outputs=answer)
153
 
154
 
155
  # Launch the Gradio app to allow user interaction
 
142
  # Setup the Gradio Blocks interface with custom layout components
143
  with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
144
  gr.Markdown(welcome_message) # Display the formatted welcome message
145
+ with gr.Column():
146
+ gr.Markdown(topics) # Show the topics on the left side
147
+ gr.Markdown(subtopics)
148
+ with gr.Column():
149
+ question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
150
+ answer = gr.Textbox(label="ScholarSage Response", placeholder="ScholarSage will respond here...", interactive=False, lines=10)
151
+ submit_button = gr.Button("Submit")
152
+ submit_button.click(fn=query_model, inputs=question, outputs=answer)
153
 
154
 
155
  # Launch the Gradio app to allow user interaction