Commit
·
4e544f2
1
Parent(s):
75dd496
Update app.py
Browse files
app.py
CHANGED
@@ -201,11 +201,15 @@ def update_explanation(choice):
|
|
201 |
with gr.Blocks(theme = 'carlosrosash/bellay_test') as demo:
|
202 |
gr.Markdown(title)
|
203 |
gr.Markdown(description)
|
|
|
|
|
204 |
with gr.Row():
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
|
|
|
|
209 |
|
210 |
# Define the columns for input and output
|
211 |
with gr.Row():
|
|
|
201 |
with gr.Blocks(theme = 'carlosrosash/bellay_test') as demo:
|
202 |
gr.Markdown(title)
|
203 |
gr.Markdown(description)
|
204 |
+
|
205 |
+
# Define the columns for dropdown, explanation, and image
|
206 |
with gr.Row():
|
207 |
+
with gr.Column():
|
208 |
+
dropdown = gr.Dropdown(list_dropdown, label="Choose an Artist or Style")
|
209 |
+
explanation_box = gr.Textbox(label="Explanation", type="text", lines=5, interactive=False)
|
210 |
+
dropdown.change(update_explanation, inputs=dropdown, outputs=[explanation_box, explanation_image])
|
211 |
+
with gr.Column(scale=2):
|
212 |
+
explanation_image = gr.HTML(label="Image")
|
213 |
|
214 |
# Define the columns for input and output
|
215 |
with gr.Row():
|