Commit
·
3fd42ba
1
Parent(s):
a46daff
Update app.py
Browse files
app.py
CHANGED
@@ -319,7 +319,9 @@ 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 |
-
|
|
|
|
|
323 |
df_results = pd.DataFrame(objects)
|
324 |
df_results.to_csv(save_path)
|
325 |
return df_results, system_info, 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 |
+
output_filename = f"{filename} ({selected_whisper_model}).csv"
|
324 |
+
save_path = os.path.join("output", output_filename)
|
325 |
df_results = pd.DataFrame(objects)
|
326 |
df_results.to_csv(save_path)
|
327 |
return df_results, system_info, save_path
|