Spaces:
Runtime error
Runtime error
LobsterQQQ
commited on
Commit
·
985293c
1
Parent(s):
a1367f5
Update app.py
Browse files
app.py
CHANGED
@@ -29,88 +29,7 @@ def infer(prompt, n_samples, steps, scale):
|
|
29 |
|
30 |
return images
|
31 |
|
32 |
-
|
33 |
-
a {
|
34 |
-
color: inherit;
|
35 |
-
text-decoration: underline;
|
36 |
-
}
|
37 |
-
.gradio-container {
|
38 |
-
font-family: 'IBM Plex Sans', sans-serif;
|
39 |
-
}
|
40 |
-
.gr-button {
|
41 |
-
color: white;
|
42 |
-
border-color: #9d66e5;
|
43 |
-
background: #9d66e5;
|
44 |
-
}
|
45 |
-
input[type='range'] {
|
46 |
-
accent-color: #9d66e5;
|
47 |
-
}
|
48 |
-
.dark input[type='range'] {
|
49 |
-
accent-color: #dfdfdf;
|
50 |
-
}
|
51 |
-
.container {
|
52 |
-
max-width: 730px;
|
53 |
-
margin: auto;
|
54 |
-
padding-top: 1.5rem;
|
55 |
-
}
|
56 |
-
#gallery {
|
57 |
-
min-height: 22rem;
|
58 |
-
margin-bottom: 15px;
|
59 |
-
margin-left: auto;
|
60 |
-
margin-right: auto;
|
61 |
-
border-bottom-right-radius: .5rem !important;
|
62 |
-
border-bottom-left-radius: .5rem !important;
|
63 |
-
}
|
64 |
-
#gallery>div>.h-full {
|
65 |
-
min-height: 20rem;
|
66 |
-
}
|
67 |
-
.details:hover {
|
68 |
-
text-decoration: underline;
|
69 |
-
}
|
70 |
-
.gr-button {
|
71 |
-
white-space: nowrap;
|
72 |
-
}
|
73 |
-
.gr-button:focus {
|
74 |
-
border-color: rgb(147 197 253 / var(--tw-border-opacity));
|
75 |
-
outline: none;
|
76 |
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
|
77 |
-
--tw-border-opacity: 1;
|
78 |
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
79 |
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px var(--tw-ring-offset-width)) var(--tw-ring-color);
|
80 |
-
--tw-ring-color: rgb(191 219 254 / var(--tw-ring-opacity));
|
81 |
-
--tw-ring-opacity: .5;
|
82 |
-
}
|
83 |
-
#advanced-options {
|
84 |
-
margin-bottom: 20px;
|
85 |
-
}
|
86 |
-
.footer {
|
87 |
-
margin-bottom: 45px;
|
88 |
-
margin-top: 35px;
|
89 |
-
text-align: center;
|
90 |
-
border-bottom: 1px solid #e5e5e5;
|
91 |
-
}
|
92 |
-
.footer>p {
|
93 |
-
font-size: .8rem;
|
94 |
-
display: inline-block;
|
95 |
-
padding: 0 10px;
|
96 |
-
transform: translateY(10px);
|
97 |
-
background: white;
|
98 |
-
}
|
99 |
-
.dark .logo{ filter: invert(1); }
|
100 |
-
.dark .footer {
|
101 |
-
border-color: #303030;
|
102 |
-
}
|
103 |
-
.dark .footer>p {
|
104 |
-
background: #0b0f19;
|
105 |
-
}
|
106 |
-
.acknowledgments h4{
|
107 |
-
margin: 1.25em 0 .25em 0;
|
108 |
-
font-weight: bold;
|
109 |
-
font-size: 115%;
|
110 |
-
}
|
111 |
-
"""
|
112 |
-
|
113 |
-
block = gr.Blocks(css=css)
|
114 |
|
115 |
examples = [
|
116 |
[
|
|
|
29 |
|
30 |
return images
|
31 |
|
32 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
|
34 |
examples = [
|
35 |
[
|