Spaces:
Runtime error
Runtime error
root
commited on
Commit
·
967fe4b
1
Parent(s):
f5e005e
add share button
Browse files
app.py
CHANGED
@@ -214,10 +214,10 @@ if __name__ == "__main__":
|
|
214 |
|
215 |
with block:
|
216 |
gr.HTML(read_content("header.html"))
|
217 |
-
with gr.Group(elem_id="share-btn-container"):
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
with gr.Tabs(elem_id='tabss') as tabs:
|
222 |
|
223 |
with gr.TabItem("文生图(Text-to-img)", id='txt2img_tab'):
|
@@ -572,12 +572,12 @@ if __name__ == "__main__":
|
|
572 |
img2img_height.change(fn=uifn.update_dimensions_info, inputs=[img2img_width, img2img_height],
|
573 |
outputs=img2img_dimensions_info_text_box)
|
574 |
|
575 |
-
share_button.click(
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
|
582 |
gr.HTML(read_content("footer.html"))
|
583 |
# gr.Image('./contributors.png')
|
|
|
214 |
|
215 |
with block:
|
216 |
gr.HTML(read_content("header.html"))
|
217 |
+
# with gr.Group(elem_id="share-btn-container"):
|
218 |
+
# community_icon = gr.HTML(community_icon_html)
|
219 |
+
# loading_icon = gr.HTML(loading_icon_html)
|
220 |
+
# share_button = gr.Button("Share to community", elem_id="share-btn")
|
221 |
with gr.Tabs(elem_id='tabss') as tabs:
|
222 |
|
223 |
with gr.TabItem("文生图(Text-to-img)", id='txt2img_tab'):
|
|
|
572 |
img2img_height.change(fn=uifn.update_dimensions_info, inputs=[img2img_width, img2img_height],
|
573 |
outputs=img2img_dimensions_info_text_box)
|
574 |
|
575 |
+
# share_button.click(
|
576 |
+
# None,
|
577 |
+
# [],
|
578 |
+
# [],
|
579 |
+
# _js=share_js,
|
580 |
+
# )
|
581 |
|
582 |
gr.HTML(read_content("footer.html"))
|
583 |
# gr.Image('./contributors.png')
|