Commit
·
061962f
1
Parent(s):
e623e63
Update app.py
Browse files
app.py
CHANGED
@@ -319,11 +319,10 @@ def speech_to_text(video_file_path, selected_source_lang, whisper_model, num_spe
|
|
319 |
*Processing time: {time_diff:.5} seconds.*
|
320 |
*GPU Utilization: {gpu_utilization}%, GPU Memory: {gpu_memory}MiB.*
|
321 |
"""
|
322 |
-
model_name = whisper_model
|
323 |
filename, _ = os.path.splitext(video_file_path)
|
324 |
filename = filename.replace(" ", "_")
|
325 |
filename = filename.replace("(", "_").replace(")", "_")
|
326 |
-
output_filename = f"{filename}
|
327 |
save_path = os.path.join("output", output_filename)
|
328 |
df_results = pd.DataFrame(objects)
|
329 |
df_results.to_csv(save_path)
|
|
|
319 |
*Processing time: {time_diff:.5} seconds.*
|
320 |
*GPU Utilization: {gpu_utilization}%, GPU Memory: {gpu_memory}MiB.*
|
321 |
"""
|
|
|
322 |
filename, _ = os.path.splitext(video_file_path)
|
323 |
filename = filename.replace(" ", "_")
|
324 |
filename = filename.replace("(", "_").replace(")", "_")
|
325 |
+
output_filename = f"{filename}.csv"
|
326 |
save_path = os.path.join("output", output_filename)
|
327 |
df_results = pd.DataFrame(objects)
|
328 |
df_results.to_csv(save_path)
|