multimodalart HF staff commited on
Commit
4601bb7
1 Parent(s): 5695a68
Files changed (2) hide show
  1. README.md +1 -1
  2. app.py +4 -4
README.md CHANGED
@@ -6,7 +6,7 @@ colorTo: indigo
6
  sdk: gradio
7
  sdk_version: 4.36.1
8
  app_file: app.py
9
- pinned: false
10
  license: mit
11
  ---
12
 
 
6
  sdk: gradio
7
  sdk_version: 4.36.1
8
  app_file: app.py
9
+ pinned: true
10
  license: mit
11
  ---
12
 
app.py CHANGED
@@ -10,7 +10,7 @@ dtype = torch.float16
10
 
11
  repo = "stabilityai/stable-diffusion-3-medium"
12
 
13
- pipe = StableDiffusion3Pipeline.from_pretrained(repo, torch_dtype=torch.float16).to(device)
14
 
15
  MAX_SEED = np.iinfo(np.int32).max
16
  MAX_IMAGE_SIZE = 1344
@@ -52,8 +52,8 @@ with gr.Blocks(css=css) as demo:
52
 
53
  with gr.Column(elem_id="col-container"):
54
  gr.Markdown(f"""
55
- # Stable Diffusion 3 Medium demo
56
- Demo of [Stable Diffusion 3 Medium](https://huggingface.co/stabilityai/stable-diffusion-3-medium) - try out [Stable Assistant](https://stability.ai/stable-assistant) for chatting, [Stable Artisan](https://stability.ai/stable-artisan) for a discord bot, our API or run locally with [ComfyUI](https://github.com/comfyanonymous/ComfyUI) or [diffusers](https://github.com/huggingface/diffusers)
57
  """)
58
 
59
  with gr.Row():
@@ -113,7 +113,7 @@ with gr.Blocks(css=css) as demo:
113
  minimum=0.0,
114
  maximum=10.0,
115
  step=0.1,
116
- value=4.0,
117
  )
118
 
119
  num_inference_steps = gr.Slider(
 
10
 
11
  repo = "stabilityai/stable-diffusion-3-medium"
12
 
13
+ pipe = StableDiffusion3Pipeline.from_pretrained(repo, torch_dtype=torch.float16, revision="refs/pr/26").to(device)
14
 
15
  MAX_SEED = np.iinfo(np.int32).max
16
  MAX_IMAGE_SIZE = 1344
 
52
 
53
  with gr.Column(elem_id="col-container"):
54
  gr.Markdown(f"""
55
+ # Demo [Stable Diffusion 3 Medium](https://huggingface.co/stabilityai/stable-diffusion-3-medium)
56
+ Learn more about the [Stable Diffusion 3 series](https://stability.ai/news/stable-diffusion-3). Try on [Stability AI API](https://platform.stability.ai/docs/api-reference#tag/Generate/paths/~1v2beta~1stable-image~1generate~1sd3/post), [Stable Assistant](https://stability.ai/stable-assistant), or on Discord via [Stable Artisan](https://stability.ai/stable-artisan). Run locally with [ComfyUI](https://github.com/comfyanonymous/ComfyUI) or [diffusers](https://github.com/huggingface/diffusers)
57
  """)
58
 
59
  with gr.Row():
 
113
  minimum=0.0,
114
  maximum=10.0,
115
  step=0.1,
116
+ value=5.0,
117
  )
118
 
119
  num_inference_steps = gr.Slider(