Spaces:
Runtime error
Runtime error
eienmojiki
commited on
Commit
•
dcacdc3
1
Parent(s):
d1757fd
Update app.py
Browse files
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
|
76 |
|
77 |
|
78 |
with gr.Blocks(
|
@@ -108,9 +108,10 @@ with gr.Blocks(
|
|
108 |
)
|
109 |
|
110 |
run_btn = gr.Button("Convert")
|
111 |
-
output = gr.
|
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(
|