indent forward share btn
Browse files
app.py
CHANGED
@@ -117,10 +117,10 @@ with gr.Blocks(css=css) as demo:
|
|
117 |
|
118 |
send_btn = gr.Button("Send my request !")
|
119 |
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
|
125 |
send_btn.click(infer, inputs=[record_input], outputs=[whisper_tr, gpt_response, share_button, community_icon, loading_icon])
|
126 |
share_button.click(None, [], [], _js=share_js)
|
|
|
117 |
|
118 |
send_btn = gr.Button("Send my request !")
|
119 |
|
120 |
+
with gr.Group(elem_id="share-btn-container"):
|
121 |
+
community_icon = gr.HTML(community_icon_html, visible=False)
|
122 |
+
loading_icon = gr.HTML(loading_icon_html, visible=False)
|
123 |
+
share_button = gr.Button("Share to community", elem_id="share-btn", visible=False)
|
124 |
|
125 |
send_btn.click(infer, inputs=[record_input], outputs=[whisper_tr, gpt_response, share_button, community_icon, loading_icon])
|
126 |
share_button.click(None, [], [], _js=share_js)
|