nan2 commited on
Commit
337f28b
·
1 Parent(s): 8757d09

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -5,7 +5,7 @@ from diffusers import StableDiffusionPipeline
5
 
6
  #model_id = "nan2/lcbanner"
7
  pipe = StableDiffusionPipeline.from_pretrained("nan2/lcbanner", torch_type=torch.float16, revision="fp16")
8
- pipe = pipe.to("cuda")
9
  #torch.backends.cudnn.benchmark = True
10
  num_samples = 2
11
 
@@ -164,12 +164,12 @@ with block as demo:
164
  </h1>
165
  </div>
166
  <p style="margin-bottom: 10px; font-size: 94%">
167
- waifu-diffusion is a latent text-to-image diffusion model that has been conditioned on high-quality anime images through fine-tuning
168
  </p>
169
  </div>
170
  """
171
  )
172
- gr.HTML("<p>You can skip the queue by duplicating this space: <a style='display:inline-block' href='https://huggingface.co/spaces/hakurei/waifu-diffusion-demo?duplicate=true'><img src='https://img.shields.io/badge/-Duplicate%20Space-blue?labelColor=white&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP5JREFUOE+lk7FqAkEURY+ltunEgFXS2sZGIbXfEPdLlnxJyDdYB62sbbUKpLbVNhyYFzbrrA74YJlh9r079973psed0cvUD4A+4HoCjsA85X0Dfn/RBLBgBDxnQPfAEJgBY+A9gALA4tcbamSzS4xq4FOQAJgCDwV2CPKV8tZAJcAjMMkUe1vX+U+SMhfAJEHasQIWmXNN3abzDwHUrgcRGmYcgKe0bxrblHEB4E/pndMazNpSZGcsZdBlYJcEL9Afo75molJyM2FxmPgmgPqlWNLGfwZGG6UiyEvLzHYDmoPkDDiNm9JR9uboiONcBXrpY1qmgs21x1QwyZcpvxt9NS09PlsPAAAAAElFTkSuQmCC&logoWidth=14' alt='Duplicate Space'></a></p>")
173
  with gr.Group():
174
  with gr.Box():
175
  with gr.Row().style(mobile_collapse=False, equal_height=True):
@@ -199,7 +199,7 @@ with block as demo:
199
  gr.HTML(
200
  """
201
  <div class="footer">
202
- <p>Stable Diffusion model fine-tuned on 56K anime image board images by <a href="https://huggingface.co/hakurei" style="text-decoration: underline;" target="_blank">hakurei</a>
203
  </p>
204
  </div>
205
  <div class="acknowledgments">
 
5
 
6
  #model_id = "nan2/lcbanner"
7
  pipe = StableDiffusionPipeline.from_pretrained("nan2/lcbanner", torch_type=torch.float16, revision="fp16")
8
+ pipe = pipe.to("dog")
9
  #torch.backends.cudnn.benchmark = True
10
  num_samples = 2
11
 
 
164
  </h1>
165
  </div>
166
  <p style="margin-bottom: 10px; font-size: 94%">
167
+ lcbanner is a latent text-to-image diffusion model that has been conditioned on high-quality anime images through fine-tuning
168
  </p>
169
  </div>
170
  """
171
  )
172
+ gr.HTML("<p>You can skip the queue by duplicating this space: <a style='display:inline-block' href='https://huggingface.co/spaces/nan2/lcbanner-demo?duplicate=true'><img src='https://img.shields.io/badge/-Duplicate%20Space-blue?labelColor=white&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP5JREFUOE+lk7FqAkEURY+ltunEgFXS2sZGIbXfEPdLlnxJyDdYB62sbbUKpLbVNhyYFzbrrA74YJlh9r079973psed0cvUD4A+4HoCjsA85X0Dfn/RBLBgBDxnQPfAEJgBY+A9gALA4tcbamSzS4xq4FOQAJgCDwV2CPKV8tZAJcAjMMkUe1vX+U+SMhfAJEHasQIWmXNN3abzDwHUrgcRGmYcgKe0bxrblHEB4E/pndMazNpSZGcsZdBlYJcEL9Afo75molJyM2FxmPgmgPqlWNLGfwZGG6UiyEvLzHYDmoPkDDiNm9JR9uboiONcBXrpY1qmgs21x1QwyZcpvxt9NS09PlsPAAAAAElFTkSuQmCC&logoWidth=14' alt='Duplicate Space'></a></p>")
173
  with gr.Group():
174
  with gr.Box():
175
  with gr.Row().style(mobile_collapse=False, equal_height=True):
 
199
  gr.HTML(
200
  """
201
  <div class="footer">
202
+ <p>Stable Diffusion model fine-tuned on 56K anime image board images by <a href="https://huggingface.co/nan2" style="text-decoration: underline;" target="_blank">nan2</a>
203
  </p>
204
  </div>
205
  <div class="acknowledgments">