Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -27,14 +27,14 @@ def process_images(image_files):
|
|
27 |
"""
|
28 |
μ
λ‘λλ μ΄λ―Έμ§ νμΌλ€μ μ²λ¦¬νμ¬ λΉλμ€λ₯Ό μμ±ν©λλ€.
|
29 |
"""
|
30 |
-
images = [imageio.imread(image_file) for image_file in image_files]
|
31 |
video_file = create_video(images)
|
32 |
return video_file
|
33 |
|
34 |
# Gradio μΈν°νμ΄μ€ μ μ
|
35 |
iface = gr.Interface(
|
36 |
fn=process_images,
|
37 |
-
inputs=gr.
|
38 |
outputs="file",
|
39 |
title="Image to Video Converter",
|
40 |
description="Upload multiple images to create a video."
|
|
|
27 |
"""
|
28 |
μ
λ‘λλ μ΄λ―Έμ§ νμΌλ€μ μ²λ¦¬νμ¬ λΉλμ€λ₯Ό μμ±ν©λλ€.
|
29 |
"""
|
30 |
+
images = [imageio.v3.imread(image_file) for image_file in image_files]
|
31 |
video_file = create_video(images)
|
32 |
return video_file
|
33 |
|
34 |
# Gradio μΈν°νμ΄μ€ μ μ
|
35 |
iface = gr.Interface(
|
36 |
fn=process_images,
|
37 |
+
inputs=gr.File(label="Upload Images", multiple=True, type="file"),
|
38 |
outputs="file",
|
39 |
title="Image to Video Converter",
|
40 |
description="Upload multiple images to create a video."
|