Spaces:
Runtime error
Runtime error
Commit
·
227ed9e
1
Parent(s):
e166a5f
minor fixes
Browse files- adjust.py +1 -0
- file_name.py +1 -0
- set_up.py +1 -0
adjust.py
CHANGED
@@ -102,6 +102,7 @@ def get_speakers_previous(to_name):
|
|
102 |
|
103 |
|
104 |
def start_adjust(to_name, progress=gr.Progress()):
|
|
|
105 |
change_name(to_name)
|
106 |
|
107 |
# Replacing texts
|
|
|
102 |
|
103 |
|
104 |
def start_adjust(to_name, progress=gr.Progress()):
|
105 |
+
global current_input_file
|
106 |
change_name(to_name)
|
107 |
|
108 |
# Replacing texts
|
file_name.py
CHANGED
@@ -3,6 +3,7 @@ import os
|
|
3 |
|
4 |
current_working_directory = os.getcwd()
|
5 |
|
|
|
6 |
current_input_file = ""
|
7 |
|
8 |
|
|
|
3 |
|
4 |
current_working_directory = os.getcwd()
|
5 |
|
6 |
+
global current_input_file
|
7 |
current_input_file = ""
|
8 |
|
9 |
|
set_up.py
CHANGED
@@ -28,6 +28,7 @@ def prepare_input(input_file, start_time, end_time, lang, model_size, use_summar
|
|
28 |
gr.Warning(ui_lang["model_dropdown_warning"])
|
29 |
return [None, None, [None, None]]
|
30 |
|
|
|
31 |
current_input_file = input_file
|
32 |
global start_time_for_adjustment
|
33 |
start_time_for_adjustment = start_time
|
|
|
28 |
gr.Warning(ui_lang["model_dropdown_warning"])
|
29 |
return [None, None, [None, None]]
|
30 |
|
31 |
+
global current_input_file
|
32 |
current_input_file = input_file
|
33 |
global start_time_for_adjustment
|
34 |
start_time_for_adjustment = start_time
|