fffiloni commited on
Commit
d7229a9
1 Parent(s): 151fcc6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -1
app.py CHANGED
@@ -154,6 +154,15 @@ css = """
154
  margin: 0 auto;
155
  max-width: 720px;
156
  }
 
 
 
 
 
 
 
 
 
157
  """
158
 
159
  with gr.Blocks(css=css) as demo:
@@ -165,6 +174,9 @@ with gr.Blocks(css=css) as demo:
165
  <p style="text-align: center;">
166
  Pixel-Aware Stable Diffusion for Realistic Image Super-resolution and Personalized Stylization
167
  </p>
 
 
 
168
 
169
  """)
170
  with gr.Row():
@@ -183,7 +195,11 @@ with gr.Blocks(css=css) as demo:
183
  with gr.Column():
184
  b_a_slider = ImageSlider(label="B/A result", position=0.5)
185
  file_output = gr.File(label="Downloadable image result")
186
-
 
 
 
 
187
  submit_btn.click(
188
  fn = inference,
189
  inputs = [
 
154
  margin: 0 auto;
155
  max-width: 720px;
156
  }
157
+ #project-links{
158
+ margin: 0 0 12px !important;
159
+ column-gap: 8px;
160
+ display: flex;
161
+ justify-content: center;
162
+ flex-wrap: nowrap;
163
+ flex-direction: row;
164
+ align-items: center;
165
+ }
166
  """
167
 
168
  with gr.Blocks(css=css) as demo:
 
174
  <p style="text-align: center;">
175
  Pixel-Aware Stable Diffusion for Realistic Image Super-resolution and Personalized Stylization
176
  </p>
177
+ <p style="margin:12px auto;display: flex;justify-content: center;">
178
+ <a href="https://huggingface.co/spaces/fffiloni/PASD?duplicate=true"><img src="https://huggingface.co/datasets/huggingface/badges/resolve/main/duplicate-this-space-lg.svg" alt="Duplicate this Space"></a>
179
+ </p>
180
 
181
  """)
182
  with gr.Row():
 
195
  with gr.Column():
196
  b_a_slider = ImageSlider(label="B/A result", position=0.5)
197
  file_output = gr.File(label="Downloadable image result")
198
+ gr.HTML("""
199
+ <p id="project-links" align="center">
200
+ <a href='https://github.com/yangxy/PASD'><img src='https://img.shields.io/badge/Project-Page-Green'></a> <a href='https://huggingface.co/papers/2308.14469'><img src='https://img.shields.io/badge/Paper-Arxiv-red'></a>
201
+ </p>
202
+ """)
203
  submit_btn.click(
204
  fn = inference,
205
  inputs = [