comdoleger commited on
Commit
bb65891
1 Parent(s): 4665583

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -5
app.py CHANGED
@@ -22,9 +22,9 @@ example_list = [
22
  [
23
  "examples/in1.png",
24
  "A Perfume Bottle, on an ornate marble pedestal, surrounded by cascading jasmine vines, under the soft glow of antique lanterns in an enchanted forest",
25
- 4.0,
26
  "full",
27
- "A transparent Bottle with a semi transparent purple liquide, studio light",
28
  False,
29
  "examples/out1.png"
30
  ],
@@ -157,7 +157,7 @@ def process(data, api, api_key):
157
  status = run_request.status()
158
  print(f"Initial job status: {status}")
159
  if status=="IN_QUEUE":
160
- gr.Info("Queued 🚶🚶🚶🚶!", duration=15)
161
 
162
  if status != "COMPLETED":
163
  # Polling with timeout for long-running tasks
@@ -296,7 +296,19 @@ div#share-btn-container > div {flex-direction: row;background: black;align-items
296
  height: 100vh;
297
  color: #333;
298
  }
 
 
 
 
 
 
 
 
 
299
 
 
 
 
300
  h1 {
301
  color: #222222;
302
  }
@@ -318,7 +330,7 @@ with block:
318
  gr.HTML('''
319
 
320
  <div class="container">
321
- <h1>F.ai Fuzer v0.1: Transcending image Generation Control🎨</h1>
322
  <h2>Control Your Creativity with Unmatched Precision: </h2>
323
  <p>F.ai Fuzer v0.1 empowers you to seamlessly blend foreground elements with any background, while maintaining the shape and style consistency of the foreground. This tool transcends traditional image generation methods by giving you unprecedented control over the final output.</p>
324
 
@@ -382,7 +394,7 @@ with block:
382
  intensity.change(fn=update_value, inputs=intensity, outputs=intensity)
383
  isrmbg = gr.Checkbox(label="Remove Background")
384
  isrmbg.change(fn=update_value, inputs=isrmbg, outputs=isrmbg)
385
- generate_button = gr.Button(value="Generate")
386
 
387
  gr.HTML('''
388
 
 
22
  [
23
  "examples/in1.png",
24
  "A Perfume Bottle, on an ornate marble pedestal, surrounded by cascading jasmine vines, under the soft glow of antique lanterns in an enchanted forest",
25
+ 3.0,
26
  "full",
27
+ "A transparent Bottle with a purple liquide, studio light",
28
  False,
29
  "examples/out1.png"
30
  ],
 
157
  status = run_request.status()
158
  print(f"Initial job status: {status}")
159
  if status=="IN_QUEUE":
160
+ gr.Info("Queued 🚶🚶🚶🚶!", duration=35)
161
 
162
  if status != "COMPLETED":
163
  # Polling with timeout for long-running tasks
 
296
  height: 100vh;
297
  color: #333;
298
  }
299
+ .custom-button {
300
+ background: linear-gradient(271.15deg, #00C7E2 0.27%, #00CC6A 48.52%, #70FF00 102.07%);
301
+ font-size: 20px; /* Adjust this value to make the text size larger or smaller */
302
+ color: white; /* Optional: Change text color for better visibility */
303
+ padding: 10px 20px; /* Optional: Adjust padding for better button size */
304
+ border: none; /* Optional: Remove border */
305
+ border-radius: 5px; /* Optional: Rounded corners */
306
+ cursor: pointer; /* Change cursor to pointer */
307
+ }
308
 
309
+ .custom-button:hover {
310
+ opacity: 0.8; /* Optional: Add hover effect */
311
+ }
312
  h1 {
313
  color: #222222;
314
  }
 
330
  gr.HTML('''
331
 
332
  <div class="container">
333
+ <center><h1>F.ai Fuzer v0.1: Transcending image Generation Control🎨</h1></center>
334
  <h2>Control Your Creativity with Unmatched Precision: </h2>
335
  <p>F.ai Fuzer v0.1 empowers you to seamlessly blend foreground elements with any background, while maintaining the shape and style consistency of the foreground. This tool transcends traditional image generation methods by giving you unprecedented control over the final output.</p>
336
 
 
394
  intensity.change(fn=update_value, inputs=intensity, outputs=intensity)
395
  isrmbg = gr.Checkbox(label="Remove Background")
396
  isrmbg.change(fn=update_value, inputs=isrmbg, outputs=isrmbg)
397
+ generate_button = gr.Button(value="Generate", elem_classes="custom-button")
398
 
399
  gr.HTML('''
400