Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,22 +22,6 @@ css = '''
|
|
22 |
transform: rotate(360deg);
|
23 |
}
|
24 |
}
|
25 |
-
#share-btn-container {
|
26 |
-
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;
|
27 |
-
}
|
28 |
-
#share-btn {
|
29 |
-
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;
|
30 |
-
}
|
31 |
-
#share-btn * {
|
32 |
-
all: unset;
|
33 |
-
}
|
34 |
-
#share-btn-container div:nth-child(-n+2){
|
35 |
-
width: auto !important;
|
36 |
-
min-height: 0px !important;
|
37 |
-
}
|
38 |
-
#share-btn-container .wrap {
|
39 |
-
display: none !important;
|
40 |
-
}
|
41 |
a {text-decoration-line: underline;}
|
42 |
'''
|
43 |
|
@@ -55,10 +39,6 @@ with gr.Blocks(css=css) as demo:
|
|
55 |
Chameleon Text2Img 🦎
|
56 |
</h1>
|
57 |
</div>
|
58 |
-
<p style="margin-bottom: 10px; font-size: 94%">
|
59 |
-
This Space prettifies your prompt using <a href="https://huggingface.co/spaces/Gustavosta/MagicPrompt-Stable-Diffusion" target="_blank">MagicPrompt</a>
|
60 |
-
and then runs it through Stable Diffusion to create aesthetically pleasing images. Simply enter a few concepts and let it improve your prompt. You can then diffuse the prompt.
|
61 |
-
</p>
|
62 |
</div>""")
|
63 |
|
64 |
with gr.Row():
|
@@ -84,7 +64,6 @@ with gr.Blocks(css=css) as demo:
|
|
84 |
],
|
85 |
outputs = [sd_output, community_icon, loading_icon, share_button]
|
86 |
)
|
87 |
-
share_button.click(None, [], [], _js=share_js)
|
88 |
|
89 |
|
90 |
|
|
|
22 |
transform: rotate(360deg);
|
23 |
}
|
24 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
a {text-decoration-line: underline;}
|
26 |
'''
|
27 |
|
|
|
39 |
Chameleon Text2Img 🦎
|
40 |
</h1>
|
41 |
</div>
|
|
|
|
|
|
|
|
|
42 |
</div>""")
|
43 |
|
44 |
with gr.Row():
|
|
|
64 |
],
|
65 |
outputs = [sd_output, community_icon, loading_icon, share_button]
|
66 |
)
|
|
|
67 |
|
68 |
|
69 |
|