Spaces:
Runtime error
Runtime error
Commit
·
afc99ad
1
Parent(s):
752ff58
Update app.py
Browse files
app.py
CHANGED
@@ -37,14 +37,74 @@ css = """
|
|
37 |
}
|
38 |
#chatbot {
|
39 |
min-height: 30rem;
|
40 |
-
max-width: 40rem;
|
41 |
margin: auto;
|
42 |
-
padding-top: 1.5rem;
|
43 |
}
|
44 |
"""
|
45 |
|
46 |
with gr.Blocks(css=css) as demo:
|
47 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
with gr.Box():
|
49 |
|
50 |
# chatbot = gr.Chatbot()
|
|
|
37 |
}
|
38 |
#chatbot {
|
39 |
min-height: 30rem;
|
|
|
40 |
margin: auto;
|
|
|
41 |
}
|
42 |
"""
|
43 |
|
44 |
with gr.Blocks(css=css) as demo:
|
45 |
|
46 |
+
gr.HTML(
|
47 |
+
"""
|
48 |
+
<div style="text-align: center; margin: 0 auto;">
|
49 |
+
<div
|
50 |
+
style="
|
51 |
+
display: inline-flex;
|
52 |
+
align-items: center;
|
53 |
+
gap: 0.8rem;
|
54 |
+
font-size: 1.75rem;
|
55 |
+
"
|
56 |
+
>
|
57 |
+
<svg
|
58 |
+
width="0.65em"
|
59 |
+
height="0.65em"
|
60 |
+
viewBox="0 0 115 115"
|
61 |
+
fill="none"
|
62 |
+
xmlns="http://www.w3.org/2000/svg"
|
63 |
+
>
|
64 |
+
<rect width="23" height="23" fill="white"></rect>
|
65 |
+
<rect y="69" width="23" height="23" fill="white"></rect>
|
66 |
+
<rect x="23" width="23" height="23" fill="#AEAEAE"></rect>
|
67 |
+
<rect x="23" y="69" width="23" height="23" fill="#AEAEAE"></rect>
|
68 |
+
<rect x="46" width="23" height="23" fill="white"></rect>
|
69 |
+
<rect x="46" y="69" width="23" height="23" fill="white"></rect>
|
70 |
+
<rect x="69" width="23" height="23" fill="black"></rect>
|
71 |
+
<rect x="69" y="69" width="23" height="23" fill="black"></rect>
|
72 |
+
<rect x="92" width="23" height="23" fill="#D9D9D9"></rect>
|
73 |
+
<rect x="92" y="69" width="23" height="23" fill="#AEAEAE"></rect>
|
74 |
+
<rect x="115" y="46" width="23" height="23" fill="white"></rect>
|
75 |
+
<rect x="115" y="115" width="23" height="23" fill="white"></rect>
|
76 |
+
<rect x="115" y="69" width="23" height="23" fill="#D9D9D9"></rect>
|
77 |
+
<rect x="92" y="46" width="23" height="23" fill="#AEAEAE"></rect>
|
78 |
+
<rect x="92" y="115" width="23" height="23" fill="#AEAEAE"></rect>
|
79 |
+
<rect x="92" y="69" width="23" height="23" fill="white"></rect>
|
80 |
+
<rect x="69" y="46" width="23" height="23" fill="white"></rect>
|
81 |
+
<rect x="69" y="115" width="23" height="23" fill="white"></rect>
|
82 |
+
<rect x="69" y="69" width="23" height="23" fill="#D9D9D9"></rect>
|
83 |
+
<rect x="46" y="46" width="23" height="23" fill="black"></rect>
|
84 |
+
<rect x="46" y="115" width="23" height="23" fill="black"></rect>
|
85 |
+
<rect x="46" y="69" width="23" height="23" fill="black"></rect>
|
86 |
+
<rect x="23" y="46" width="23" height="23" fill="#D9D9D9"></rect>
|
87 |
+
<rect x="23" y="115" width="23" height="23" fill="#AEAEAE"></rect>
|
88 |
+
<rect x="23" y="69" width="23" height="23" fill="black"></rect>
|
89 |
+
</svg>
|
90 |
+
<h1 style="font-weight: 900; margin-bottom: 7px;margin-top:5px">
|
91 |
+
Stable Diffusion 2.1 Demo
|
92 |
+
</h1>
|
93 |
+
</div>
|
94 |
+
<p style="margin-bottom: 10px; font-size: 94%; line-height: 23px;">
|
95 |
+
Stable Diffusion 2.1 is the latest text-to-image model from StabilityAI. <a style="text-decoration: underline;" href="https://huggingface.co/spaces/stabilityai/stable-diffusion-1">Access Stable Diffusion 1 Space here</a><br>For faster generation and API
|
96 |
+
access you can try
|
97 |
+
<a
|
98 |
+
href="http://beta.dreamstudio.ai/"
|
99 |
+
style="text-decoration: underline;"
|
100 |
+
target="_blank"
|
101 |
+
>DreamStudio Beta</a
|
102 |
+
>.</a>
|
103 |
+
</p>
|
104 |
+
</div>
|
105 |
+
"""
|
106 |
+
)
|
107 |
+
|
108 |
with gr.Box():
|
109 |
|
110 |
# chatbot = gr.Chatbot()
|