bori0824 commited on
Commit
2d0a45c
1 Parent(s): 08503b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
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="The Peddler's Magic Seeds",
15
  description="Click the title to reveal the image related to the story."
16
  )
17
 
18
- iface.launch()
 
 
 
 
 
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
+ )