fffiloni commited on
Commit
2676c5c
1 Parent(s): 3696310

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -81,7 +81,7 @@ a {text-decoration-line: underline; font-weight: 600;}
81
  justify-content: center;
82
  align-items: center;
83
  border-radius: 9999px !important;
84
- max-width: 13rem;
85
  }
86
  div#share-btn-container > div {
87
  flex-direction: row;
@@ -133,7 +133,7 @@ with gr.Blocks(css=css) as demo:
133
  with gr.Row():
134
  with gr.Column():
135
  image_in = gr.Image(label="Image input", type="filepath", elem_id="image-in", height=420)
136
- audience = gr.Radio(label="Target Audience", choices=["Children", "Adult"], value="Children")
137
  submit_btn = gr.Button('Tell me a story')
138
  with gr.Column():
139
  #caption = gr.Textbox(label="Generated Caption")
@@ -142,7 +142,7 @@ with gr.Blocks(css=css) as demo:
142
  with gr.Group(elem_id="share-btn-container", visible=False) as share_group:
143
  community_icon = gr.HTML(community_icon_html)
144
  loading_icon = gr.HTML(loading_icon_html)
145
- share_button = gr.Button("Share to community", elem_id="share-btn")
146
 
147
  gr.Examples(examples=[["./examples/crabby.png", "Children"],["./examples/hopper.jpeg", "Adult"]],
148
  fn=infer,
 
81
  justify-content: center;
82
  align-items: center;
83
  border-radius: 9999px !important;
84
+ max-width: 15rem;
85
  }
86
  div#share-btn-container > div {
87
  flex-direction: row;
 
133
  with gr.Row():
134
  with gr.Column():
135
  image_in = gr.Image(label="Image input", type="filepath", elem_id="image-in", height=420)
136
+ audience = gr.Radio(label="Target Audience", choices=["Children", "Adult"], value="Children", height=420)
137
  submit_btn = gr.Button('Tell me a story')
138
  with gr.Column():
139
  #caption = gr.Textbox(label="Generated Caption")
 
142
  with gr.Group(elem_id="share-btn-container", visible=False) as share_group:
143
  community_icon = gr.HTML(community_icon_html)
144
  loading_icon = gr.HTML(loading_icon_html)
145
+ share_button = gr.Button("Share with community", elem_id="share-btn")
146
 
147
  gr.Examples(examples=[["./examples/crabby.png", "Children"],["./examples/hopper.jpeg", "Adult"]],
148
  fn=infer,