Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from translator import translation # Assuming your translation class is in a tr
|
|
4 |
|
5 |
def app(video_path, original_language, target_language):
|
6 |
# Move to the working directory
|
7 |
-
os.chdir('/workspace') # Adjust path based on Hugging Face's working directory
|
8 |
|
9 |
# Use the Gradio-provided path to the uploaded file
|
10 |
video_name = os.path.basename(video_path.name)
|
|
|
4 |
|
5 |
def app(video_path, original_language, target_language):
|
6 |
# Move to the working directory
|
7 |
+
# os.chdir('/workspace') # Adjust path based on Hugging Face's working directory
|
8 |
|
9 |
# Use the Gradio-provided path to the uploaded file
|
10 |
video_name = os.path.basename(video_path.name)
|