eienmojiki commited on
Commit
dcacdc3
1 Parent(s): d1757fd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -72,7 +72,7 @@ def convert_video_to_gif(
72
  # Read the GIF from the temporary file
73
  gif_image = Image.open(temp_file.name)
74
 
75
- return [gif_image]
76
 
77
 
78
  with gr.Blocks(
@@ -108,9 +108,10 @@ with gr.Blocks(
108
  )
109
 
110
  run_btn = gr.Button("Convert")
111
- output = gr.Gallery(
112
  label="GIF",
113
- format="gif"
 
114
  )
115
 
116
  input.change(
 
72
  # Read the GIF from the temporary file
73
  gif_image = Image.open(temp_file.name)
74
 
75
+ return gif_image
76
 
77
 
78
  with gr.Blocks(
 
108
  )
109
 
110
  run_btn = gr.Button("Convert")
111
+ output = gr.Image(
112
  label="GIF",
113
+ format="gif",
114
+ type="pil"
115
  )
116
 
117
  input.change(