Spaces:
Runtime error
Runtime error
Commit
·
e26b705
1
Parent(s):
ca173e0
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ num_rows = 3
|
|
6 |
num_cols = 3
|
7 |
num_images = num_rows * num_cols
|
8 |
image_size = 64
|
9 |
-
plot_image_size =
|
10 |
|
11 |
model = hf_hub.from_pretrained_keras("beresandras/denoising-diffusion-model")
|
12 |
|
@@ -61,7 +61,7 @@ def generate_images(diffusion_steps, stochasticity, min_signal_rate, max_signal_
|
|
61 |
gr.Interface(
|
62 |
generate_images,
|
63 |
inputs=[
|
64 |
-
gr.inputs.Slider(1, 20, default=10, label="Diffusion steps"),
|
65 |
gr.inputs.Slider(0.0, 1.0, step=0.05, default=0.0, label="Stochasticity"),
|
66 |
gr.inputs.Slider(0.02, 0.10, step=0.01, default=0.02, label="Minimal signal rate"),
|
67 |
gr.inputs.Slider(0.80, 0.95, step=0.01, default=0.95, label="Maximal signal rate"),
|
|
|
6 |
num_cols = 3
|
7 |
num_images = num_rows * num_cols
|
8 |
image_size = 64
|
9 |
+
plot_image_size = 256
|
10 |
|
11 |
model = hf_hub.from_pretrained_keras("beresandras/denoising-diffusion-model")
|
12 |
|
|
|
61 |
gr.Interface(
|
62 |
generate_images,
|
63 |
inputs=[
|
64 |
+
gr.inputs.Slider(1, 20, step=1, default=10, label="Diffusion steps"),
|
65 |
gr.inputs.Slider(0.0, 1.0, step=0.05, default=0.0, label="Stochasticity"),
|
66 |
gr.inputs.Slider(0.02, 0.10, step=0.01, default=0.02, label="Minimal signal rate"),
|
67 |
gr.inputs.Slider(0.80, 0.95, step=0.01, default=0.95, label="Maximal signal rate"),
|