Spaces:
Runtime error
Runtime error
Mark Liu
commited on
Commit
·
509005b
1
Parent(s):
b4aaca6
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,7 @@ css = '''
|
|
| 25 |
transform: rotate(360deg);
|
| 26 |
}
|
| 27 |
}
|
| 28 |
-
#share-btn-container {
|
| 29 |
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;
|
| 30 |
}
|
| 31 |
#share-btn {
|
|
@@ -81,10 +81,10 @@ with gr.Blocks(css=css) as demo:
|
|
| 81 |
diffuse_btn = gr.Button(value="Diffuse the Prompt!")
|
| 82 |
with gr.Column(elem_id="generated-gallery"):
|
| 83 |
sd_output = gr.Gallery().style(grid=2, height="auto")
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
|
| 89 |
see_prompts.click(get_prompts,
|
| 90 |
inputs = [input_text],
|
|
|
|
| 25 |
transform: rotate(360deg);
|
| 26 |
}
|
| 27 |
}
|
| 28 |
+
#share-btn-container { display:none;
|
| 29 |
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;
|
| 30 |
}
|
| 31 |
#share-btn {
|
|
|
|
| 81 |
diffuse_btn = gr.Button(value="Diffuse the Prompt!")
|
| 82 |
with gr.Column(elem_id="generated-gallery"):
|
| 83 |
sd_output = gr.Gallery().style(grid=2, height="auto")
|
| 84 |
+
with gr.Group(elem_id="share-btn-container"):
|
| 85 |
+
community_icon = gr.HTML(community_icon_html, visible=False)
|
| 86 |
+
loading_icon = gr.HTML(loading_icon_html, visible=False)
|
| 87 |
+
share_button = gr.Button("Share to community", elem_id="share-btn", visible=False)
|
| 88 |
|
| 89 |
see_prompts.click(get_prompts,
|
| 90 |
inputs = [input_text],
|