Jhjoon05 commited on
Commit
7d8c98a
·
1 Parent(s): dd65208

removed years in timestamp in filename

Browse files
Files changed (1) hide show
  1. modules/model_Inference.py +3 -3
modules/model_Inference.py CHANGED
@@ -44,7 +44,7 @@ class WhisperInference():
44
  file_name, file_ext = os.path.splitext(os.path.basename(fileobj.orig_name))
45
  file_name = file_name[:-9]
46
  file_name = safe_filename(file_name)
47
- timestamp = datetime.now().strftime("%Y%m%d%H%M%S")
48
  output_path = f"outputs/{file_name}-{timestamp}"
49
 
50
  if subformat == "SRT":
@@ -84,7 +84,7 @@ class WhisperInference():
84
  progress(1,desc="Completed!")
85
 
86
  file_name = safe_filename(yt.title)
87
- timestamp = datetime.now().strftime("%Y%m%d%H%M%S")
88
  output_path = f"outputs/{file_name}-{timestamp}"
89
 
90
  if subformat == "SRT":
@@ -121,7 +121,7 @@ class WhisperInference():
121
 
122
  progress(1,desc="Completed!")
123
 
124
- timestamp = datetime.now().strftime("%Y%m%d%H%M%S")
125
  output_path = f"outputs/Mic-{timestamp}"
126
 
127
  if subformat == "SRT":
 
44
  file_name, file_ext = os.path.splitext(os.path.basename(fileobj.orig_name))
45
  file_name = file_name[:-9]
46
  file_name = safe_filename(file_name)
47
+ timestamp = datetime.now().strftime("%m%d%H%M%S")
48
  output_path = f"outputs/{file_name}-{timestamp}"
49
 
50
  if subformat == "SRT":
 
84
  progress(1,desc="Completed!")
85
 
86
  file_name = safe_filename(yt.title)
87
+ timestamp = datetime.now().strftime("%m%d%H%M%S")
88
  output_path = f"outputs/{file_name}-{timestamp}"
89
 
90
  if subformat == "SRT":
 
121
 
122
  progress(1,desc="Completed!")
123
 
124
+ timestamp = datetime.now().strftime("%m%d%H%M%S")
125
  output_path = f"outputs/Mic-{timestamp}"
126
 
127
  if subformat == "SRT":