Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -214,28 +214,63 @@ def query(prompt, is_negative=False, steps=30, cfg_scale=7, sampler="DPM++ 2M Ka
|
|
214 |
except Exception as e:
|
215 |
print(f"Error when trying to open the image: {e}")
|
216 |
return None, None, None
|
217 |
-
|
218 |
css = """
|
219 |
.gradio-container {
|
220 |
background: url(https://huggingface.co/spaces/K00B404/FLUX.1-Dev-Serverless-darn-enhanced-prompt/resolve/main/edge.png);
|
221 |
-
background-size:620px 800px;
|
222 |
background-repeat: no-repeat;
|
|
|
|
|
223 |
}
|
224 |
|
225 |
body {
|
226 |
-
|
227 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
228 |
background-repeat: no-repeat;
|
229 |
-
|
|
|
|
|
230 |
}
|
231 |
#app-container {
|
232 |
-
background-color:
|
233 |
max-width: 600px;
|
234 |
margin-left: auto;
|
235 |
margin-right: auto;
|
236 |
-
padding:
|
237 |
-
border-radius:
|
238 |
-
box-shadow: 0 0 10px rgba(
|
239 |
}
|
240 |
#title-container {
|
241 |
display: flex;
|
|
|
214 |
except Exception as e:
|
215 |
print(f"Error when trying to open the image: {e}")
|
216 |
return None, None, None
|
|
|
217 |
css = """
|
218 |
.gradio-container {
|
219 |
background: url(https://huggingface.co/spaces/K00B404/FLUX.1-Dev-Serverless-darn-enhanced-prompt/resolve/main/edge.png);
|
220 |
+
background-size: 620px 800px;
|
221 |
background-repeat: no-repeat;
|
222 |
+
background-position: center;
|
223 |
+
background-attachment: fixed;
|
224 |
}
|
225 |
|
226 |
body {
|
227 |
+
}
|
228 |
+
|
229 |
+
#app-container {
|
230 |
+
background-color: rgba(255, 255, 255, 0.001); /* Corrected to make semi-transparent */
|
231 |
+
max-width: 600px;
|
232 |
+
margin-left: auto;
|
233 |
+
margin-right: auto;
|
234 |
+
padding: 0px;
|
235 |
+
border-radius: 25px;
|
236 |
+
box-shadow: 0 0 10px rgba(0,0,0,0.1); /* Adjusted shadow opacity */
|
237 |
+
}
|
238 |
+
|
239 |
+
#title-container {
|
240 |
+
display: flex;
|
241 |
+
align-items: center;
|
242 |
+
justify-content: center;
|
243 |
+
}
|
244 |
+
|
245 |
+
#title-icon {
|
246 |
+
width: 32px;
|
247 |
+
height: auto;
|
248 |
+
margin-right: 10px;
|
249 |
+
}
|
250 |
+
|
251 |
+
#title-text {
|
252 |
+
font-size: 24px;
|
253 |
+
font-weight: bold;
|
254 |
+
}
|
255 |
+
"""
|
256 |
+
css2 = """
|
257 |
+
.gradio-container {
|
258 |
+
background: url(https://huggingface.co/spaces/K00B404/FLUX.1-Dev-Serverless-darn-enhanced-prompt/resolve/main/edge.png);
|
259 |
+
background-size:620px 800px;
|
260 |
+
background-position: center;
|
261 |
background-repeat: no-repeat;
|
262 |
+
}
|
263 |
+
|
264 |
+
body {
|
265 |
}
|
266 |
#app-container {
|
267 |
+
background-color: rgba0, 0, 0, 0.001); /* semi-transparent white */
|
268 |
max-width: 600px;
|
269 |
margin-left: auto;
|
270 |
margin-right: auto;
|
271 |
+
padding: 0px;
|
272 |
+
border-radius: 25px;
|
273 |
+
box-shadow: 0 0 10px rgba(0,0,0,0.001);
|
274 |
}
|
275 |
#title-container {
|
276 |
display: flex;
|