fffiloni commited on
Commit
8ac707f
1 Parent(s): 16ac44e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -123,7 +123,7 @@ a {text-decoration-line: underline; font-weight: 600;}
123
  }
124
  }
125
  #share-btn-container {
126
- display: flex; padding-left: 0.5rem !important; padding-right: 0.5rem !important; background-color: #000000; justify-content: center; align-items: center; border-radius: 9999px !important; width: 13rem;
127
  }
128
  #share-btn {
129
  all: initial; color: #ffffff;font-weight: 600; cursor:pointer; font-family: 'IBM Plex Sans', sans-serif; margin-left: 0.5rem !important; padding-top: 0.25rem !important; padding-bottom: 0.25rem !important;
@@ -154,9 +154,9 @@ with gr.Blocks(css=css) as block:
154
  output_text = gr.Textbox(label="Description Output", elem_id="output-txt")
155
 
156
  with gr.Group(elem_id="share-btn-container"):
157
- community_icon = gr.HTML(community_icon_html, visible=False)
158
- loading_icon = gr.HTML(loading_icon_html, visible=False)
159
- share_button = gr.Button("Share to community", elem_id="share-btn", visible=False)
160
 
161
  examples=[['27E894C4-9375-48A1-A95D-CB2425416B4B.png', "best",4], ['DB362F56-BA98-4CA1-A999-A25AA94B723B.png',"fast",4]]
162
  ex = gr.Examples(examples=examples, fn=inference, inputs=[input_image, mode_input, flavor_input], outputs=[output_text, share_button, community_icon, loading_icon], cache_examples=True, run_on_click=True)
 
123
  }
124
  }
125
  #share-btn-container {
126
+ display: flex; padding-left: 0.5rem !important; padding-right: 0.5rem !important; background-color: #000000; justify-content: center; align-items: center; border-radius: 9999px !important; width: 15rem;
127
  }
128
  #share-btn {
129
  all: initial; color: #ffffff;font-weight: 600; cursor:pointer; font-family: 'IBM Plex Sans', sans-serif; margin-left: 0.5rem !important; padding-top: 0.25rem !important; padding-bottom: 0.25rem !important;
 
154
  output_text = gr.Textbox(label="Description Output", elem_id="output-txt")
155
 
156
  with gr.Group(elem_id="share-btn-container"):
157
+ community_icon = gr.HTML(community_icon_html, visible=True)
158
+ loading_icon = gr.HTML(loading_icon_html, visible=True)
159
+ share_button = gr.Button("Share with Community", elem_id="share-btn", visible=True)
160
 
161
  examples=[['27E894C4-9375-48A1-A95D-CB2425416B4B.png', "best",4], ['DB362F56-BA98-4CA1-A999-A25AA94B723B.png',"fast",4]]
162
  ex = gr.Examples(examples=examples, fn=inference, inputs=[input_image, mode_input, flavor_input], outputs=[output_text, share_button, community_icon, loading_icon], cache_examples=True, run_on_click=True)