From 835f563e3716034c62174bbd891d62472197b0a4 Mon Sep 17 00:00:00 2001 From: swrneko Date: Sun, 7 Sep 2025 23:52:01 +0300 Subject: [PATCH] enable interavtive on inputFile field and add save file --- app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 4b15ab8..ea2856b 100644 --- a/app.py +++ b/app.py @@ -115,7 +115,7 @@ with gr.Blocks() as demo: with gr.Column(): with gr.Accordion(label='Settings'): # Первое поле на всю ширину в акордионе настроек - filename = gr.Textbox(label='Output filename', value='output.txt') + filename = gr.Textbox(label='Output filename', value='output.txt', interactive=True) # Акордион настроек faster whisper with gr.Accordion(label='Faster whisper settings'): @@ -162,5 +162,6 @@ with gr.Blocks() as demo: recognizeBtn.click(recognize, outputs=[recognizedText], inputs=[fastWhisperModel, audioFile, beamSize, vadFilter, minSilenceDurationMs, speechPadMs, temp0, temp1, temp2, wordTimestamps, noSpeechThreshold, conditionOnPreviousText]) recognizedText.change(Llm(apiKey.value).generate, inputs=[llmModel, systemPrompt, recognizedText, llmTemperature], outputs=[refinedText, refinedTextMD]) + refinedText.change(saveFile, inputs=[filename, refinedText]) demo.launch()