Spaces:
Running
Running
송형규
commited on
Commit
•
40e54ff
1
Parent(s):
7c7e6cf
mp4 conversion for ios support (`a4e84c9` in https://bitbucket.org/maum-system/cvpr22-demo-gradio)
Browse files
app.py
CHANGED
@@ -131,7 +131,7 @@ class GradioApplication:
|
|
131 |
background_data, is_video_background)
|
132 |
print(len(video_data))
|
133 |
|
134 |
-
video_filename = self.output_dir / f"{self._file_seed:02d}.
|
135 |
with open(video_filename, "wb") as video_file:
|
136 |
video_file.write(video_data)
|
137 |
|
@@ -190,7 +190,7 @@ def prepare_output():
|
|
190 |
translation_result_otuput = gr.outputs.Textbox(type="str",
|
191 |
label="Translation Result")
|
192 |
|
193 |
-
video_output = gr.outputs.Video()
|
194 |
return [translation_result_otuput, video_output]
|
195 |
|
196 |
|
|
|
131 |
background_data, is_video_background)
|
132 |
print(len(video_data))
|
133 |
|
134 |
+
video_filename = self.output_dir / f"{self._file_seed:02d}.mkv"
|
135 |
with open(video_filename, "wb") as video_file:
|
136 |
video_file.write(video_data)
|
137 |
|
|
|
190 |
translation_result_otuput = gr.outputs.Textbox(type="str",
|
191 |
label="Translation Result")
|
192 |
|
193 |
+
video_output = gr.outputs.Video(format='mp4')
|
194 |
return [translation_result_otuput, video_output]
|
195 |
|
196 |
|