Remove language and number of speakers fields from web GUI
Mirror and run GitLab CI / build (push) Waiting to run
Ruff / ruff (push) Waiting to run

- Drop 'Language (optional)' and 'Number of speakers (optional)' inputs.
- Update submit handler to pass None for both fields.
This commit is contained in:
admin
2026-06-19 15:18:03 +00:00
parent 36b0b6f241
commit dabb5970ba
+2 -16
View File
@@ -157,16 +157,6 @@ def create_app():
info="If enabled, AI will attempt to infer real names for speakers and replace Speaker 1/2/etc. in the transcript.", info="If enabled, AI will attempt to infer real names for speakers and replace Speaker 1/2/etc. in the transcript.",
) )
with gr.Row():
language_input = gr.Textbox(
label="Language (optional)",
placeholder="e.g., english, german",
)
num_speakers_input = gr.Number(
label="Number of speakers (optional)",
precision=0,
)
email_to = gr.Textbox( email_to = gr.Textbox(
label="Your email address (required)", label="Your email address (required)",
placeholder="e.g. your.name@example.com", placeholder="e.g. your.name@example.com",
@@ -205,8 +195,6 @@ def create_app():
def on_submit( def on_submit(
audio, audio,
task, task,
language,
num_speakers,
email_to_val, email_to_val,
email_cc_val, email_cc_val,
identify_speakers_val, identify_speakers_val,
@@ -242,8 +230,8 @@ def create_app():
task_result = process_transcription_task.delay( task_result = process_transcription_task.delay(
audio_path=dest_path, audio_path=dest_path,
task_type=task, task_type=task,
language=language or None, language=None,
num_speakers=int(num_speakers) if num_speakers else None, num_speakers=None,
email_to=email_to_val, email_to=email_to_val,
email_cc=email_cc_val or None, email_cc=email_cc_val or None,
include_summary=(task == "transcript_and_summarize"), include_summary=(task == "transcript_and_summarize"),
@@ -266,8 +254,6 @@ def create_app():
inputs=[ inputs=[
audio_input, audio_input,
task_choice, task_choice,
language_input,
num_speakers_input,
email_to, email_to,
email_cc, email_cc,
identify_speakers, identify_speakers,