sab commited on
Commit
aa14eed
·
1 Parent(s): 944ffcd

fix layout

Browse files
Files changed (2) hide show
  1. app.py +1 -3
  2. config.py +13 -9
app.py CHANGED
@@ -113,9 +113,7 @@ demo = gr.Interface(
113
  inputs=image,
114
  outputs=[output_slider, gr.File(label="output png file")],
115
  title="🫧 Snap Clean 🧽",
116
- description=config.DESCRIPTION,
117
- footer=config.BUY_ME_A_COFFE
118
-
119
  )
120
 
121
 
 
113
  inputs=image,
114
  outputs=[output_slider, gr.File(label="output png file")],
115
  title="🫧 Snap Clean 🧽",
116
+ description=config.DESCRIPTION
 
 
117
  )
118
 
119
 
config.py CHANGED
@@ -8,7 +8,15 @@ DEFAULT_SEED = 124
8
  DEFAULT_NUM_INFERENCE_STEPS = 24
9
  DEFAULT_TRUE_GUIDANCE_SCALE = 3.5
10
 
11
- DESCRIPTION = """
 
 
 
 
 
 
 
 
12
  <div style="max-width: 600px; margin: auto; font-family: Arial, sans-serif; color: #333;">
13
  r <h1 style="text-align: center; color: #fff;">🧽🫧Snap Clean!</h1>
14
  <p style="text-align: center; font-size: 1.1em; line-height: 1.6;">
@@ -16,13 +24,9 @@ Remove Unwanted Objects from Photos.
16
  </p>
17
  <p style="text-align: center; font-size: 1.1em; line-height: 1.6;">
18
  </p>
19
- </div>
 
 
 
20
  """
21
 
22
- BUY_ME_A_COFFE = """
23
- <a href="https://buymeacoffee.com/thesab" target="_blank">
24
- <button style="background-color: #FFDD00; border: none; color: black; padding: 10px 20px; text-align: center; text-decoration: none; display: inline-block; font-size: 16px; margin: 4px 2px; cursor: pointer; border-radius: 10px;">
25
- ☕ Buy Me a Coffee
26
- </button>
27
- </a>
28
- """
 
8
  DEFAULT_NUM_INFERENCE_STEPS = 24
9
  DEFAULT_TRUE_GUIDANCE_SCALE = 3.5
10
 
11
+ BUY_ME_A_COFFE = """
12
+ <a href="https://buymeacoffee.com/thesab" target="_blank">
13
+ <button style="background-color: #FFDD00; border: none; color: black; padding: 10px 20px; text-align: center; text-decoration: none; display: inline-block; font-size: 16px; margin: 4px 2px; cursor: pointer; border-radius: 10px;">
14
+ ☕ Buy Me a Coffee
15
+ </button>
16
+ </a>
17
+ """
18
+
19
+ DESCRIPTION = f"""
20
  <div style="max-width: 600px; margin: auto; font-family: Arial, sans-serif; color: #333;">
21
  r <h1 style="text-align: center; color: #fff;">🧽🫧Snap Clean!</h1>
22
  <p style="text-align: center; font-size: 1.1em; line-height: 1.6;">
 
24
  </p>
25
  <p style="text-align: center; font-size: 1.1em; line-height: 1.6;">
26
  </p>
27
+ <div>
28
+ {BUY_ME_A_COFFE}
29
+ </div>
30
+ </div>
31
  """
32