mishig HF staff commited on
Commit
f9b7714
1 Parent(s): 309335b

change layout of share btn

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -107,6 +107,10 @@ with gr.Blocks(theme=theme, analytics_enabled=False, css=css) as demo:
107
  gr.Markdown("**Answer**")
108
  output = gr.Markdown(elem_id="q-output")
109
  submit = gr.Button("Generate", variant="primary")
 
 
 
 
110
  gr.Examples(
111
  examples=examples,
112
  inputs=[instruction],
@@ -115,11 +119,6 @@ with gr.Blocks(theme=theme, analytics_enabled=False, css=css) as demo:
115
  outputs=[output],
116
  )
117
 
118
- with gr.Group(elem_id="share-btn-container"):
119
- community_icon = gr.HTML(community_icon_html, visible=True)
120
- loading_icon = gr.HTML(loading_icon_html, visible=True)
121
- share_button = gr.Button("Share to community", elem_id="share-btn", visible=True)
122
-
123
  with gr.Column(scale=1):
124
  temperature = gr.Slider(
125
  label="Temperature",
 
107
  gr.Markdown("**Answer**")
108
  output = gr.Markdown(elem_id="q-output")
109
  submit = gr.Button("Generate", variant="primary")
110
+ with gr.Group(elem_id="share-btn-container"):
111
+ community_icon = gr.HTML(community_icon_html, visible=True)
112
+ loading_icon = gr.HTML(loading_icon_html, visible=True)
113
+ share_button = gr.Button("Share to community", elem_id="share-btn", visible=True)
114
  gr.Examples(
115
  examples=examples,
116
  inputs=[instruction],
 
119
  outputs=[output],
120
  )
121
 
 
 
 
 
 
122
  with gr.Column(scale=1):
123
  temperature = gr.Slider(
124
  label="Temperature",