Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -137,19 +137,19 @@ with gr.Blocks(theme=theme) as demo:
|
|
137 |
)
|
138 |
|
139 |
# Setup the Gradio Blocks interface with custom layout components
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
|
153 |
|
154 |
-
|
155 |
demo.launch(share=True)
|
|
|
137 |
)
|
138 |
|
139 |
# Setup the Gradio Blocks interface with custom layout components
|
140 |
+
with gr.Blocks(theme=theme) as demo:
|
141 |
+
gr.image(display_image(scale=1, min_width=200))
|
142 |
+
gr.Markdown(welcome_message) # Display the formatted welcome message
|
143 |
+
with gr.Row():
|
144 |
+
with gr.Column():
|
145 |
+
gr.Markdown(topics) # Show the topics on the left side
|
146 |
+
with gr.Row():
|
147 |
+
with gr.Column():
|
148 |
+
question = gr.Textbox(label="Your question", placeholder="What do you want to ask about?")
|
149 |
+
answer = gr.Textbox(label="GloBot Response", placeholder="GloBot will respond here...", interactive=False, lines=10)
|
150 |
+
submit_button = gr.Button("Submit")
|
151 |
+
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
152 |
|
153 |
|
154 |
+
Launch the Gradio app to allow user interaction
|
155 |
demo.launch(share=True)
|