staghado commited on
Commit
6ee4209
1 Parent(s): 8c7af92

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -87,10 +87,11 @@ def fourier_transform_drawing(input_image, output_animation, frames, coefficient
87
  interface = gr.Interface(
88
  fn=fourier_transform_drawing,
89
  inputs=[
90
- gr.Image(label="Input Image"),
91
- gr.Textbox(default="output.mp4", label="Output Animation Path"),
92
- gr.Slider(minimum=10, maximum=500, default=300, label="Number of Frames"),
93
- gr.Slider(minimum=10, maximum=500, default=300, label="Number of Coefficients")
 
94
  ],
95
  outputs="file",
96
  title="Fourier Transform Drawing",
 
87
  interface = gr.Interface(
88
  fn=fourier_transform_drawing,
89
  inputs=[
90
+
91
+ gr.Image(label="Input Image", sources=['upload'], type="pil"),
92
+ gr.Textbox(label="Output Animation Path"),
93
+ gr.Slider(minimum=10, maximum=500, value=300, label="Number of Frames"),
94
+ gr.Slider(minimum=10, maximum=500, value=300, label="Number of Coefficients")
95
  ],
96
  outputs="file",
97
  title="Fourier Transform Drawing",