Spaces:
Runtime error
Runtime error
Thong Nguyen
commited on
Commit
•
b31fa62
1
Parent(s):
ed5192d
install the huggingface spaces
Browse files
app.py
CHANGED
@@ -56,15 +56,6 @@ def image_parser(args):
|
|
56 |
return out
|
57 |
|
58 |
|
59 |
-
|
60 |
-
def load_images(image_files):
|
61 |
-
out = []
|
62 |
-
for image_file in image_files:
|
63 |
-
image = load_image(image_file)
|
64 |
-
out.append(image)
|
65 |
-
return out
|
66 |
-
|
67 |
-
|
68 |
def generate_video_caption(video_path):
|
69 |
video_id = video_path.split('/')[-1].strip().split('.')[0]
|
70 |
|
@@ -95,7 +86,7 @@ iface = gr.Interface(
|
|
95 |
inputs=gr.File(file_types=["video"]),
|
96 |
outputs="text",
|
97 |
title="MAMA Video-Text Generation Pipeline",
|
98 |
-
description="Upload a video and get the
|
99 |
)
|
100 |
|
101 |
iface.launch(share=True)
|
|
|
56 |
return out
|
57 |
|
58 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
def generate_video_caption(video_path):
|
60 |
video_id = video_path.split('/')[-1].strip().split('.')[0]
|
61 |
|
|
|
86 |
inputs=gr.File(file_types=["video"]),
|
87 |
outputs="text",
|
88 |
title="MAMA Video-Text Generation Pipeline",
|
89 |
+
description="Upload a video and get the description. Due to high financial cost, we can only use TinyLLaVA on CPUs. Please only try videos which are less than 1MB. Thank you so much and Welcome to MAMA!"
|
90 |
)
|
91 |
|
92 |
iface.launch(share=True)
|