Spaces:
Running
Running
jhj0517
commited on
Commit
·
c661883
1
Parent(s):
93721c6
fix to proper default value
Browse files
app.py
CHANGED
@@ -65,7 +65,7 @@ class App:
|
|
65 |
dd_compute_type = gr.Dropdown(label="Compute Type", choices=self.whisper_inf.available_compute_types, value=self.whisper_inf.current_compute_type, interactive=True)
|
66 |
nb_best_of = gr.Number(label="Best Of", value=5, interactive=True)
|
67 |
nb_patience = gr.Number(label="Patience", value=1, interactive=True)
|
68 |
-
cb_condition_on_previous_text = gr.Checkbox(label="Condition On Previous Text", value=
|
69 |
tb_initial_prompt = gr.Textbox(label="Initial Prompt", value=None, interactive=False)
|
70 |
with gr.Row():
|
71 |
btn_run = gr.Button("GENERATE SUBTITLE FILE", variant="primary")
|
@@ -119,7 +119,7 @@ class App:
|
|
119 |
dd_compute_type = gr.Dropdown(label="Compute Type", choices=self.whisper_inf.available_compute_types, value=self.whisper_inf.current_compute_type, interactive=True)
|
120 |
nb_best_of = gr.Number(label="Best Of", value=5, interactive=True)
|
121 |
nb_patience = gr.Number(label="Patience", value=1, interactive=True)
|
122 |
-
cb_condition_on_previous_text = gr.Checkbox(label="Condition On Previous Text", value=
|
123 |
tb_initial_prompt = gr.Textbox(label="Initial Prompt", value=None, interactive=False)
|
124 |
with gr.Row():
|
125 |
btn_run = gr.Button("GENERATE SUBTITLE FILE", variant="primary")
|
@@ -166,7 +166,7 @@ class App:
|
|
166 |
dd_compute_type = gr.Dropdown(label="Compute Type", choices=self.whisper_inf.available_compute_types, value=self.whisper_inf.current_compute_type, interactive=True)
|
167 |
nb_best_of = gr.Number(label="Best Of", value=5, interactive=True)
|
168 |
nb_patience = gr.Number(label="Patience", value=1, interactive=True)
|
169 |
-
cb_condition_on_previous_text = gr.Checkbox(label="Condition On Previous Text", value=
|
170 |
tb_initial_prompt = gr.Textbox(label="Initial Prompt", value=None, interactive=False)
|
171 |
with gr.Row():
|
172 |
btn_run = gr.Button("GENERATE SUBTITLE FILE", variant="primary")
|
|
|
65 |
dd_compute_type = gr.Dropdown(label="Compute Type", choices=self.whisper_inf.available_compute_types, value=self.whisper_inf.current_compute_type, interactive=True)
|
66 |
nb_best_of = gr.Number(label="Best Of", value=5, interactive=True)
|
67 |
nb_patience = gr.Number(label="Patience", value=1, interactive=True)
|
68 |
+
cb_condition_on_previous_text = gr.Checkbox(label="Condition On Previous Text", value=True, interactive=True)
|
69 |
tb_initial_prompt = gr.Textbox(label="Initial Prompt", value=None, interactive=False)
|
70 |
with gr.Row():
|
71 |
btn_run = gr.Button("GENERATE SUBTITLE FILE", variant="primary")
|
|
|
119 |
dd_compute_type = gr.Dropdown(label="Compute Type", choices=self.whisper_inf.available_compute_types, value=self.whisper_inf.current_compute_type, interactive=True)
|
120 |
nb_best_of = gr.Number(label="Best Of", value=5, interactive=True)
|
121 |
nb_patience = gr.Number(label="Patience", value=1, interactive=True)
|
122 |
+
cb_condition_on_previous_text = gr.Checkbox(label="Condition On Previous Text", value=True, interactive=True)
|
123 |
tb_initial_prompt = gr.Textbox(label="Initial Prompt", value=None, interactive=False)
|
124 |
with gr.Row():
|
125 |
btn_run = gr.Button("GENERATE SUBTITLE FILE", variant="primary")
|
|
|
166 |
dd_compute_type = gr.Dropdown(label="Compute Type", choices=self.whisper_inf.available_compute_types, value=self.whisper_inf.current_compute_type, interactive=True)
|
167 |
nb_best_of = gr.Number(label="Best Of", value=5, interactive=True)
|
168 |
nb_patience = gr.Number(label="Patience", value=1, interactive=True)
|
169 |
+
cb_condition_on_previous_text = gr.Checkbox(label="Condition On Previous Text", value=True, interactive=True)
|
170 |
tb_initial_prompt = gr.Textbox(label="Initial Prompt", value=None, interactive=False)
|
171 |
with gr.Row():
|
172 |
btn_run = gr.Button("GENERATE SUBTITLE FILE", variant="primary")
|