Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -114,18 +114,6 @@ topics = """
|
|
114 |
- How to Support Local Businesses
|
115 |
"""
|
116 |
|
117 |
-
# Setup the Gradio Blocks interface with custom layout components
|
118 |
-
with gr.Blocks(theme='JohnSmith9982/small_and_pretty') as demo:
|
119 |
-
gr.Markdown(welcome_message) # Display the formatted welcome message
|
120 |
-
with gr.Row():
|
121 |
-
with gr.Column():
|
122 |
-
gr.Markdown(topics) # Show the topics on the left side
|
123 |
-
with gr.Row():
|
124 |
-
with gr.Column():
|
125 |
-
question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
|
126 |
-
answer = gr.Textbox(label="StudyBot Response", placeholder="StudyBot will respond here...", interactive=False, lines=10)
|
127 |
-
submit_button = gr.Button("Submit")
|
128 |
-
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
129 |
|
130 |
# Display function
|
131 |
|
|
|
114 |
- How to Support Local Businesses
|
115 |
"""
|
116 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
|
118 |
# Display function
|
119 |
|