Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -152,6 +152,8 @@ def audio_function():
|
|
152 |
|
153 |
|
154 |
transcript = diarize(diarization_pipeline, "current_out.wav", parameters, asr_outputs)
|
|
|
|
|
155 |
return transcript,asr_outputs["chunks"],asr_outputs["text"]
|
156 |
return {
|
157 |
"speakers": transcript,
|
@@ -318,4 +320,4 @@ with gr.Blocks() as demo:
|
|
318 |
output_text = gr.Textbox(label="SOAP Notes")
|
319 |
submit_button.click(audio_function2, outputs=[output_text,gr.Textbox(label="Time Taken :")])
|
320 |
|
321 |
-
demo.launch(
|
|
|
152 |
|
153 |
|
154 |
transcript = diarize(diarization_pipeline, "current_out.wav", parameters, asr_outputs)
|
155 |
+
global speech
|
156 |
+
speech = transcript
|
157 |
return transcript,asr_outputs["chunks"],asr_outputs["text"]
|
158 |
return {
|
159 |
"speakers": transcript,
|
|
|
320 |
output_text = gr.Textbox(label="SOAP Notes")
|
321 |
submit_button.click(audio_function2, outputs=[output_text,gr.Textbox(label="Time Taken :")])
|
322 |
|
323 |
+
demo.launch()
|