LPX55 commited on
Commit
4673a75
·
verified ·
1 Parent(s): 4d6b5e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -9
app.py CHANGED
@@ -104,7 +104,7 @@ with gr.Blocks() as demo:
104
  with gr.Column():
105
 
106
  image_input = gr.Image(label="Input Grid Image", type="pil")
107
-
108
  with gr.Column():
109
  with gr.Row():
110
  grid_cols_input = gr.Slider(1, 10, value=2, step=1, label="Grid Columns")
@@ -113,14 +113,12 @@ with gr.Blocks() as demo:
113
  fps_input = gr.Slider(1, 30, value=10, step=1, label="FPS (Frames per Second)")
114
  ping_pong_toggle = gr.Checkbox(label="Ping-Pong Effect")
115
  interpolation_factor_input = gr.Slider(1, 10, value=2, step=1, label="Interpolation Factor")
116
-
117
- with gr.Row():
118
- zip_button = gr.Button("Create Zip File")
119
- gif_button = gr.Button("Create GIF")
120
- with gr.Row():
121
- preview_image = gr.Image(label="Preview GIF Frame")
122
- zip_output = gr.File(label="Download Zip File")
123
- gif_output = gr.File(label="Download GIF")
124
  zip_button.click(process_image, inputs=[image_input, grid_cols_input, grid_rows_input], outputs=zip_output)
125
  gif_button.click(
126
  process_image_to_gif,
 
104
  with gr.Column():
105
 
106
  image_input = gr.Image(label="Input Grid Image", type="pil")
107
+ preview_image = gr.Image(label="Preview GIF Frame")
108
  with gr.Column():
109
  with gr.Row():
110
  grid_cols_input = gr.Slider(1, 10, value=2, step=1, label="Grid Columns")
 
113
  fps_input = gr.Slider(1, 30, value=10, step=1, label="FPS (Frames per Second)")
114
  ping_pong_toggle = gr.Checkbox(label="Ping-Pong Effect")
115
  interpolation_factor_input = gr.Slider(1, 10, value=2, step=1, label="Interpolation Factor")
116
+ with gr.Row():
117
+ gif_button = gr.Button("Create GIF")
118
+ zip_button = gr.Button("Create Zip File")
119
+ with gr.Row():
120
+ gif_output = gr.File(label="Download GIF")
121
+ zip_output = gr.File(label="Download Zip File")
 
 
122
  zip_button.click(process_image, inputs=[image_input, grid_cols_input, grid_rows_input], outputs=zip_output)
123
  gif_button.click(
124
  process_image_to_gif,