Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -94,7 +94,7 @@ def process_gif(gif_file, width, height, lock_ratio):
|
|
| 94 |
# Resize GIF
|
| 95 |
output, message = resize_gif(gif_file, width, height, lock_ratio)
|
| 96 |
|
| 97 |
-
return output, f"GIF Info:\nWidth: {original_width}px\nHeight: {original_height}px\nFrames: {frame_count}\n\n{message}"
|
| 98 |
|
| 99 |
# Gradio Interface
|
| 100 |
with gr.Blocks() as demo:
|
|
@@ -133,7 +133,7 @@ with gr.Blocks() as demo:
|
|
| 133 |
resize_button.click(
|
| 134 |
fn=process_gif,
|
| 135 |
inputs=[gif_input, width_input, height_input, lock_ratio],
|
| 136 |
-
outputs=[output_gif, output_info
|
| 137 |
)
|
| 138 |
|
| 139 |
demo.launch()
|
|
|
|
| 94 |
# Resize GIF
|
| 95 |
output, message = resize_gif(gif_file, width, height, lock_ratio)
|
| 96 |
|
| 97 |
+
return output, f"GIF Info:\nWidth: {original_width}px\nHeight: {original_height}px\nFrames: {frame_count}\n\n{message}"
|
| 98 |
|
| 99 |
# Gradio Interface
|
| 100 |
with gr.Blocks() as demo:
|
|
|
|
| 133 |
resize_button.click(
|
| 134 |
fn=process_gif,
|
| 135 |
inputs=[gif_input, width_input, height_input, lock_ratio],
|
| 136 |
+
outputs=[output_gif, output_info]
|
| 137 |
)
|
| 138 |
|
| 139 |
demo.launch()
|