Spaces:
Runtime error
Runtime error
silveroxides
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ pipe = DiffusionPipeline.from_pretrained(model_repo_id, torch_dtype=torch_dtype)
|
|
18 |
pipe = pipe.to(device)
|
19 |
|
20 |
MAX_SEED = np.iinfo(np.int32).max
|
21 |
-
MAX_IMAGE_SIZE =
|
22 |
|
23 |
@spaces.GPU
|
24 |
def infer(
|
@@ -66,10 +66,11 @@ with gr.Blocks(css=css) as demo:
|
|
66 |
gr.Markdown(" # [Stable Diffusion 3.5 Large Turbo (8B)](https://huggingface.co/stabilityai/stable-diffusion-3.5-large-turbo)")
|
67 |
gr.Markdown("[Learn more](https://stability.ai/news/introducing-stable-diffusion-3-5) about the Stable Diffusion 3.5 series. Try on [Stability AI API](https://platform.stability.ai/docs/api-reference#tag/Generate/paths/~1v2beta~1stable-image~1generate~1sd3/post), or [download model](https://huggingface.co/stabilityai/stable-diffusion-3.5-large-turbo) to run locally with ComfyUI or diffusers.")
|
68 |
with gr.Row():
|
69 |
-
prompt = gr.
|
70 |
label="Prompt",
|
71 |
show_label=False,
|
72 |
-
max_lines=
|
|
|
73 |
placeholder="Enter your prompt",
|
74 |
container=False,
|
75 |
)
|
@@ -79,11 +80,12 @@ with gr.Blocks(css=css) as demo:
|
|
79 |
result = gr.Image(label="Result", show_label=False)
|
80 |
|
81 |
with gr.Accordion("Advanced Settings", open=False):
|
82 |
-
negative_prompt = gr.
|
83 |
label="Negative prompt",
|
84 |
-
max_lines=
|
|
|
85 |
placeholder="Enter a negative prompt",
|
86 |
-
visible=
|
87 |
)
|
88 |
|
89 |
seed = gr.Slider(
|
|
|
18 |
pipe = pipe.to(device)
|
19 |
|
20 |
MAX_SEED = np.iinfo(np.int32).max
|
21 |
+
MAX_IMAGE_SIZE = 1216
|
22 |
|
23 |
@spaces.GPU
|
24 |
def infer(
|
|
|
66 |
gr.Markdown(" # [Stable Diffusion 3.5 Large Turbo (8B)](https://huggingface.co/stabilityai/stable-diffusion-3.5-large-turbo)")
|
67 |
gr.Markdown("[Learn more](https://stability.ai/news/introducing-stable-diffusion-3-5) about the Stable Diffusion 3.5 series. Try on [Stability AI API](https://platform.stability.ai/docs/api-reference#tag/Generate/paths/~1v2beta~1stable-image~1generate~1sd3/post), or [download model](https://huggingface.co/stabilityai/stable-diffusion-3.5-large-turbo) to run locally with ComfyUI or diffusers.")
|
68 |
with gr.Row():
|
69 |
+
prompt = gr.Textbox(
|
70 |
label="Prompt",
|
71 |
show_label=False,
|
72 |
+
max_lines=4,
|
73 |
+
lines=4,
|
74 |
placeholder="Enter your prompt",
|
75 |
container=False,
|
76 |
)
|
|
|
80 |
result = gr.Image(label="Result", show_label=False)
|
81 |
|
82 |
with gr.Accordion("Advanced Settings", open=False):
|
83 |
+
negative_prompt = gr.Textbox(
|
84 |
label="Negative prompt",
|
85 |
+
max_lines=2,
|
86 |
+
lines=2,
|
87 |
placeholder="Enter a negative prompt",
|
88 |
+
visible=True,
|
89 |
)
|
90 |
|
91 |
seed = gr.Slider(
|