Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -74,9 +74,6 @@ def txt2img_generate(prompt, steps=25, seed=42, guidance_scale=7.5):
|
|
| 74 |
|
| 75 |
return img_list
|
| 76 |
|
| 77 |
-
md = """
|
| 78 |
-
This Spaces app is to demonstrate the inference of Stable Diffusion on **4th Gen Intel Xeon Scalable Processors (Sapphire Rapids)** vs. **3rd Gen Intel Xeon Scalable Processors (Ice Lake)** on Amazon Web Services. Now, you can have a try and see the significant performance speedup on 4th Gen Intel Xeon Scalable Processors!
|
| 79 |
-
"""
|
| 80 |
|
| 81 |
css = '''
|
| 82 |
.instruction{position: absolute; top: 0;right: 0;margin-top: 0px !important}
|
|
@@ -118,7 +115,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 118 |
inference_steps_2 = gr.inputs.Slider(1, 100, label='Inference Steps - increase the steps for better quality (e.g., avoiding black image) ', default=20, step=1)
|
| 119 |
seed_2 = gr.inputs.Slider(0, 2147483647, label='Seed', default=random_seed, step=1)
|
| 120 |
guidance_scale_2 = gr.inputs.Slider(1.0, 20.0, label='Guidance Scale - how much the prompt will influence the results', default=7.5, step=0.1)
|
| 121 |
-
strength = gr.inputs.Slider(0.0, 1.0, label='Strength - adding more noise to it the larger the strength', default=0.
|
| 122 |
img2img_button = gr.Button("Generate Image")
|
| 123 |
|
| 124 |
with gr.Column():
|
|
|
|
| 74 |
|
| 75 |
return img_list
|
| 76 |
|
|
|
|
|
|
|
|
|
|
| 77 |
|
| 78 |
css = '''
|
| 79 |
.instruction{position: absolute; top: 0;right: 0;margin-top: 0px !important}
|
|
|
|
| 115 |
inference_steps_2 = gr.inputs.Slider(1, 100, label='Inference Steps - increase the steps for better quality (e.g., avoiding black image) ', default=20, step=1)
|
| 116 |
seed_2 = gr.inputs.Slider(0, 2147483647, label='Seed', default=random_seed, step=1)
|
| 117 |
guidance_scale_2 = gr.inputs.Slider(1.0, 20.0, label='Guidance Scale - how much the prompt will influence the results', default=7.5, step=0.1)
|
| 118 |
+
strength = gr.inputs.Slider(0.0, 1.0, label='Strength - adding more noise to it the larger the strength', default=0.25, step=0.01)
|
| 119 |
img2img_button = gr.Button("Generate Image")
|
| 120 |
|
| 121 |
with gr.Column():
|