Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from videocr import save_subtitles_to_file
|
|
6 |
def run_video_ocr(input_video, output_file_name, language_code, use_gpu, start_time, end_time, confidence_threshold, similarity_threshold, frames_to_skip, crop_x, crop_y, crop_width, crop_height):
|
7 |
try:
|
8 |
# Ensure the output directory exists
|
9 |
-
persistent_dir = '/
|
10 |
if not os.path.exists(persistent_dir):
|
11 |
os.makedirs(persistent_dir)
|
12 |
|
|
|
6 |
def run_video_ocr(input_video, output_file_name, language_code, use_gpu, start_time, end_time, confidence_threshold, similarity_threshold, frames_to_skip, crop_x, crop_y, crop_width, crop_height):
|
7 |
try:
|
8 |
# Ensure the output directory exists
|
9 |
+
persistent_dir = '/data'
|
10 |
if not os.path.exists(persistent_dir):
|
11 |
os.makedirs(persistent_dir)
|
12 |
|