Rodrigo_Cobo
commited on
Commit
•
24dac97
1
Parent(s):
fb6c0ad
prepare wiggle output
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ def calculate_depth(model_type, img):
|
|
55 |
|
56 |
def wiggle_effect(slider):
|
57 |
|
58 |
-
return f'temp/image_depth.jpeg'
|
59 |
|
60 |
|
61 |
|
@@ -75,7 +75,8 @@ with gr.Blocks() as demo:
|
|
75 |
|
76 |
inp = [gr.Slider(1,15, default = 2, label='StepCycles',step= 1)]
|
77 |
with gr.Row():
|
78 |
-
out = gr.Image(type="file", label="Output")
|
|
|
79 |
btn = gr.Button("Calculate depth")
|
80 |
btn.click(fn=wiggle_effect, inputs=inp, outputs=out)
|
81 |
|
|
|
55 |
|
56 |
def wiggle_effect(slider):
|
57 |
|
58 |
+
return [f'temp/image_depth.jpeg',f'temp/image_depth.jpeg']
|
59 |
|
60 |
|
61 |
|
|
|
75 |
|
76 |
inp = [gr.Slider(1,15, default = 2, label='StepCycles',step= 1)]
|
77 |
with gr.Row():
|
78 |
+
out = [ gr.Image(type="file", label="Output"),
|
79 |
+
gr.Image(type="file", label="Output")]
|
80 |
btn = gr.Button("Calculate depth")
|
81 |
btn.click(fn=wiggle_effect, inputs=inp, outputs=out)
|
82 |
|