K00B404 commited on
Commit
8478e85
1 Parent(s): 7f4427c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -64
app.py CHANGED
@@ -214,6 +214,7 @@ 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
  css = """
218
  .gradio-container {
219
  background: url(https://huggingface.co/spaces/K00B404/FLUX.1-Dev-Serverless-darn-enhanced-prompt/resolve/main/edge.png);
@@ -261,75 +262,12 @@ css = """
261
  }
262
 
263
  #title-text {
264
- font-size: 43px;
265
  font-weight: bold;
266
  color: #000;
267
  }
268
  """
269
- css2 = """
270
- .gradio-container {
271
- background: url(https://huggingface.co/spaces/K00B404/FLUX.1-Dev-Serverless-darn-enhanced-prompt/resolve/main/edge.png);
272
- background-size:620px 800px;
273
- background-position: center;
274
- background-repeat: no-repeat;
275
- }
276
 
277
- body {
278
- }
279
- #app-container {
280
- background-color: rgba0, 0, 0, 0.001); /* semi-transparent white */
281
- max-width: 600px;
282
- margin-left: auto;
283
- margin-right: auto;
284
- padding-top: 10px;
285
- border-radius: 25px;
286
- box-shadow: 0 0 10px rgba(0,0,0,0.001);
287
- }
288
- #title-container {
289
- display: flex;
290
- align-items: center;
291
- justify-content: center;
292
- }
293
- #title-icon {
294
- width: 32px;
295
- height: auto;
296
- margin-right: 10px;
297
- }
298
- #title-text {
299
- font-size: 24px;
300
- font-weight: bold;
301
- }
302
- """
303
-
304
- css1 = """
305
- #app-container {
306
- max-width: 600px;
307
- margin-left: auto;
308
- margin-right: auto;
309
- }
310
- #title-container {
311
- display: flex;
312
- align-items: center;
313
- justify-content: center;
314
- }
315
- #app-container {
316
- max-width: 600px;
317
- margin-left: auto;
318
- margin-right: auto;
319
- background-color: rgba(255, 255, 255, 0.001); /* semi-transparent white */
320
- padding: 20px;
321
- border-radius: 10px;
322
- }
323
- #title-icon {
324
- width: 32px; /* Adjust the width of the icon as needed */
325
- height: auto;
326
- margin-right: 10px; /* Space between icon and title */
327
- }
328
- #title-text {
329
- font-size: 24px; /* Adjust font size as needed */
330
- font-weight: bold;
331
- }
332
- """
333
 
334
  with gr.Blocks(theme='Nymbo/Nymbo_Theme', css=css) as app:
335
  gr.HTML("""
 
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);
 
262
  }
263
 
264
  #title-text {
265
+ font-size: 30px;
266
  font-weight: bold;
267
  color: #000;
268
  }
269
  """
 
 
 
 
 
 
 
270
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
271
 
272
  with gr.Blocks(theme='Nymbo/Nymbo_Theme', css=css) as app:
273
  gr.HTML("""