Spaces:
Running
Running
lowercase initial of a sentence (temp fix)
Browse files
app.py
CHANGED
@@ -284,7 +284,7 @@ def text_to_video(
|
|
284 |
|
285 |
# hands moved to pose wrists
|
286 |
sign.data[:, 33:54, :3] += -sign.data[:, 33:34, :3] + sign.data[:, 15:16, :3]
|
287 |
-
sign.data[:, 54
|
288 |
|
289 |
sign.save_animation(output_path, overwrite=True)
|
290 |
else:
|
@@ -303,6 +303,9 @@ def translate(text: str, text_lang: str, sign_lang: str, sign_format: str):
|
|
303 |
datetime.now().strftime("%Y-%m-%d %H:%M:%S.%f"),
|
304 |
]
|
305 |
try:
|
|
|
|
|
|
|
306 |
path = "output.mp4"
|
307 |
text_to_video(
|
308 |
text,
|
|
|
284 |
|
285 |
# hands moved to pose wrists
|
286 |
sign.data[:, 33:54, :3] += -sign.data[:, 33:34, :3] + sign.data[:, 15:16, :3]
|
287 |
+
sign.data[:, 54: , :3] += -sign.data[:, 54:55, :3] + sign.data[:, 16:17, :3]
|
288 |
|
289 |
sign.save_animation(output_path, overwrite=True)
|
290 |
else:
|
|
|
303 |
datetime.now().strftime("%Y-%m-%d %H:%M:%S.%f"),
|
304 |
]
|
305 |
try:
|
306 |
+
if text_lang == "en":
|
307 |
+
text = text[:1].lower() + text[1:]
|
308 |
+
|
309 |
path = "output.mp4"
|
310 |
text_to_video(
|
311 |
text,
|