Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,10 +9,14 @@ def show_image():
|
|
| 9 |
# Gradio interface
|
| 10 |
iface = gr.Interface(
|
| 11 |
fn=show_image,
|
| 12 |
-
inputs=
|
| 13 |
outputs="image",
|
| 14 |
-
title="
|
| 15 |
description="Click the title to reveal the image related to the story."
|
| 16 |
)
|
| 17 |
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
# Gradio interface
|
| 10 |
iface = gr.Interface(
|
| 11 |
fn=show_image,
|
| 12 |
+
inputs=gr.Button("The Peddler's Magic Seeds", elem_id="title_button"),
|
| 13 |
outputs="image",
|
| 14 |
+
title="",
|
| 15 |
description="Click the title to reveal the image related to the story."
|
| 16 |
)
|
| 17 |
|
| 18 |
+
# Add custom CSS to underline the title
|
| 19 |
+
iface.launch(
|
| 20 |
+
inline=False,
|
| 21 |
+
css=".gr-button { text-decoration: underline; font-size: 20px; font-weight: bold; }"
|
| 22 |
+
)
|