charliebaby2023 commited on
Commit
c063398
·
verified ·
1 Parent(s): 6e5b74f

Update app_demo.py

Browse files
Files changed (1) hide show
  1. app_demo.py +5 -5
app_demo.py CHANGED
@@ -14,9 +14,9 @@ from diffusers import StableDiffusionPipeline
14
  import uuid
15
 
16
  model_id = "Lykon/dreamshaper-xl-v2-turbo"
17
- DESCRIPTION = '''# Fast Stable Diffusion CPU with Latent Consistency Model
18
  #Distilled from [Dreamshaper v7](https://huggingface.co/Lykon/dreamshaper-7) fine‑tune of SD v1-5.
19
- '''
20
  if not torch.cuda.is_available():
21
  DESCRIPTION += "\n<p>running on CPU.</p>"
22
  MAX_SEED = np.iinfo(np.int32).max
@@ -196,12 +196,12 @@ with gr.Blocks() as demo:
196
  f"""
197
  <p id="project-links" align="center">
198
  <a href='https://huggingface.co/spaces/charliebaby2023/Fast_Stable_diffusion_CPU/edit/main/app_demo.py'>Edit this app_demo py file</a>
199
- <p> this is currently running the following model array </p>
200
 
201
  </p>
202
  """
203
  )
204
-
205
  def update_models(hfuser):
206
  if hfuser:
207
  models = validate_and_list_models(hfuser)
@@ -226,7 +226,7 @@ with gr.Blocks() as demo:
226
  run_btn.click(run_models, [hfuser_models, parallel_toggle], output)
227
 
228
 
229
- gr.Markdown(DESCRIPTION)
230
  with gr.Group():
231
  with gr.Row():
232
  prompt = gr.Text(
 
14
  import uuid
15
 
16
  model_id = "Lykon/dreamshaper-xl-v2-turbo"
17
+ #DESCRIPTION = '''# Fast Stable Diffusion CPU with Latent Consistency Model
18
  #Distilled from [Dreamshaper v7](https://huggingface.co/Lykon/dreamshaper-7) fine‑tune of SD v1-5.
19
+ #'''
20
  if not torch.cuda.is_available():
21
  DESCRIPTION += "\n<p>running on CPU.</p>"
22
  MAX_SEED = np.iinfo(np.int32).max
 
196
  f"""
197
  <p id="project-links" align="center">
198
  <a href='https://huggingface.co/spaces/charliebaby2023/Fast_Stable_diffusion_CPU/edit/main/app_demo.py'>Edit this app_demo py file</a>
199
+ <p> this is currently running the Lykon/dreamshaper-xl-v2-turbo model</p>
200
 
201
  </p>
202
  """
203
  )
204
+ gr.Markdown(DESCRIPTION)
205
  def update_models(hfuser):
206
  if hfuser:
207
  models = validate_and_list_models(hfuser)
 
226
  run_btn.click(run_models, [hfuser_models, parallel_toggle], output)
227
 
228
 
229
+
230
  with gr.Group():
231
  with gr.Row():
232
  prompt = gr.Text(