radames commited on
Commit
ebd6aa7
1 Parent(s): 4e4bf12

disable cache

Browse files
Files changed (2) hide show
  1. README.md +1 -3
  2. app.py +2 -2
README.md CHANGED
@@ -7,9 +7,7 @@ sdk: gradio
7
  sdk_version: 4.19.1
8
  app_file: app.py
9
  pinned: false
10
- preload_from_hub:
11
- - stabilityai/stable-diffusion-xl-base-1.0
12
- - ByteDance/SDXL-Lightning sdxl_lightning_1step_unet_x0.safetensors
13
  ---
14
 
15
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
7
  sdk_version: 4.19.1
8
  app_file: app.py
9
  pinned: false
10
+ disable_embedding: true
 
 
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py CHANGED
@@ -79,6 +79,8 @@ def predict(prompt, seed=1231231):
79
  generator=generator,
80
  num_inference_steps=1,
81
  guidance_scale=0.0,
 
 
82
  # original_inference_steps=params.lcm_steps,
83
  output_type="pil",
84
  )
@@ -101,7 +103,6 @@ css = """
101
  }
102
  #intro{
103
  max-width: 100%;
104
- text-align: center;
105
  margin: 0 auto;
106
  }
107
  """
@@ -110,7 +111,6 @@ with gr.Blocks(css=css) as demo:
110
  gr.Markdown(
111
  """
112
  # SDXL-Lightning- Text To Image 1-Step
113
- ## Unofficial Demo
114
  **Model**: https://huggingface.co/ByteDance/SDXL-Lightning
115
  """,
116
  elem_id="intro",
 
79
  generator=generator,
80
  num_inference_steps=1,
81
  guidance_scale=0.0,
82
+ # width=768,
83
+ # height=768,
84
  # original_inference_steps=params.lcm_steps,
85
  output_type="pil",
86
  )
 
103
  }
104
  #intro{
105
  max-width: 100%;
 
106
  margin: 0 auto;
107
  }
108
  """
 
111
  gr.Markdown(
112
  """
113
  # SDXL-Lightning- Text To Image 1-Step
 
114
  **Model**: https://huggingface.co/ByteDance/SDXL-Lightning
115
  """,
116
  elem_id="intro",