Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
β’
d49d4ea
1
Parent(s):
6e45c49
optional image
Browse files
app.py
CHANGED
@@ -364,7 +364,7 @@ gr.Interface(
|
|
364 |
gr.inputs.Slider(minimum=25, maximum=400, default=80, label='max iterations', step=1),
|
365 |
gr.inputs.Slider(minimum=200, maximum=500, default=256, label='width', step=1),
|
366 |
gr.inputs.Slider(minimum=200, maximum=500, default=256, label='height', step=1),
|
367 |
-
gr.inputs.Image(type="file", label="Initial Image"),
|
368 |
gr.inputs.Slider(minimum=0.0, maximum=15.0, default=0.0, label='Initial Weight', step=1.0),
|
369 |
],
|
370 |
[gr.outputs.Image(type="numpy", label="Output Image"),gr.outputs.Image(type="file", label="Output GIF")],
|
|
|
364 |
gr.inputs.Slider(minimum=25, maximum=400, default=80, label='max iterations', step=1),
|
365 |
gr.inputs.Slider(minimum=200, maximum=500, default=256, label='width', step=1),
|
366 |
gr.inputs.Slider(minimum=200, maximum=500, default=256, label='height', step=1),
|
367 |
+
gr.inputs.Image(type="file", label="Initial Image", optional=True),
|
368 |
gr.inputs.Slider(minimum=0.0, maximum=15.0, default=0.0, label='Initial Weight', step=1.0),
|
369 |
],
|
370 |
[gr.outputs.Image(type="numpy", label="Output Image"),gr.outputs.Image(type="file", label="Output GIF")],
|