Spaces:
Paused
Paused
Commit ·
2959fbb
1
Parent(s): d78dbed
Update app.py
Browse files
app.py
CHANGED
|
@@ -84,7 +84,7 @@ def process_video(Video, target_language):
|
|
| 84 |
|
| 85 |
# Write the translated lines back into the original file.
|
| 86 |
f.writelines(translated_lines)
|
| 87 |
-
return None, None
|
| 88 |
output_video = f"{common_uuid}_output_video.mp4"
|
| 89 |
# Debugging: Validate FFmpeg command for subtitle embedding
|
| 90 |
print("Validating FFmpeg command for subtitle embedding...")
|
|
@@ -107,8 +107,8 @@ def process_video(Video, target_language):
|
|
| 107 |
except Exception as e:
|
| 108 |
print(f"Ocorreu uma exceção: {e}")
|
| 109 |
print("process_video concluído com sucesso")
|
| 110 |
-
os.unlink(audio_file)
|
| 111 |
-
os.unlink(transcript_file)
|
| 112 |
|
| 113 |
return output_video, None
|
| 114 |
|
|
|
|
| 84 |
|
| 85 |
# Write the translated lines back into the original file.
|
| 86 |
f.writelines(translated_lines)
|
| 87 |
+
#return None, None
|
| 88 |
output_video = f"{common_uuid}_output_video.mp4"
|
| 89 |
# Debugging: Validate FFmpeg command for subtitle embedding
|
| 90 |
print("Validating FFmpeg command for subtitle embedding...")
|
|
|
|
| 107 |
except Exception as e:
|
| 108 |
print(f"Ocorreu uma exceção: {e}")
|
| 109 |
print("process_video concluído com sucesso")
|
| 110 |
+
#os.unlink(audio_file)
|
| 111 |
+
#os.unlink(transcript_file)
|
| 112 |
|
| 113 |
return output_video, None
|
| 114 |
|