Spaces:
Build error
Build error
using .mkv and add opencv-python to pip
Browse files- app.py +2 -2
- requirements.txt +1 -0
app.py
CHANGED
|
@@ -18,7 +18,7 @@ def text_to_video(
|
|
| 18 |
|
| 19 |
def predict(text: str, text_language: str, sign_language: str):
|
| 20 |
try:
|
| 21 |
-
path = "./output.
|
| 22 |
text_to_video(text, text_language, sign_language, output_path=path)
|
| 23 |
return path
|
| 24 |
except Exception as exc:
|
|
@@ -45,7 +45,7 @@ gradio_app = gradio.Interface(
|
|
| 45 |
),
|
| 46 |
], # type: ignore
|
| 47 |
outputs=gradio.Video(
|
| 48 |
-
format="
|
| 49 |
label="Synthesized Sign Language Video",
|
| 50 |
autoplay=True,
|
| 51 |
show_download_button=True,
|
|
|
|
| 18 |
|
| 19 |
def predict(text: str, text_language: str, sign_language: str):
|
| 20 |
try:
|
| 21 |
+
path = "./output.mkv"
|
| 22 |
text_to_video(text, text_language, sign_language, output_path=path)
|
| 23 |
return path
|
| 24 |
except Exception as exc:
|
|
|
|
| 45 |
),
|
| 46 |
], # type: ignore
|
| 47 |
outputs=gradio.Video(
|
| 48 |
+
format="mkv",
|
| 49 |
label="Synthesized Sign Language Video",
|
| 50 |
autoplay=True,
|
| 51 |
show_download_button=True,
|
requirements.txt
CHANGED
|
@@ -1 +1,2 @@
|
|
| 1 |
sign-language-translator
|
|
|
|
|
|
| 1 |
sign-language-translator
|
| 2 |
+
opencv-python
|