Spaces:
Runtime error
Runtime error
Commit
•
4601bb7
1
Parent(s):
5695a68
Actual final text fix (#2)
Browse files- Actual final text fix (d47f79be8420d1a805779728705f4f58f8df6f24)
- Update README.md (160f6981f5b3eeca84e9f51fbfe1b379232891fe)
- Update app.py (51dafbc7779e0f423ddc05791dd34acab9d5e83c)
- Update app.py (0f34ce752323597866a80d68713f6203514f1d80)
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:
|
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
|
56 |
-
|
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=
|
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(
|