Spaces:
Build error
Build error
Update app.py
Browse files92 unmodified lines939495969798991001 unmodified line10210310410510610710892 unmodified linesdef transcribe_and_generate_soap(audio, task, system_prompt, max_new_tokens, temperature, top_p, top_k, repetition_penalty):# First transcribe the audiotranscribed_text = transcribe(audio, task)# Then generate SOAP notes based on the transcriptionreturn generate_soap(transcribed_text,system_prompt,max_new_tokens,1 unmodified linetop_p,top_k,repetition_penalty)# Gradio Interface combining transcription and SOAP note generationdemo = gr.Blocks(theme=gr.themes.Ocean())92 unmodified lines939495969798991001 unmodified line10210310410510610710810992 unmodified linesdef transcribe_and_generate_soap(audio, task, system_prompt, max_new_tokens, temperature, top_p, top_k, repetition_penalty):# First transcribe the audiotranscribed_text = transcribe(audio, task)# Then generate SOAP notes based on the transcription and collect all generated text into a single stringgenerated_text = "".join(generate_soap(transcribed_text,system_prompt,max_new_tokens,1 unmodified linetop_p,top_k,repetition_penalty))return generated_text# Gradio Interface combining transcription and SOAP note generationdemo = gr.Blocks(theme=gr.themes.Ocean())
app.py+4-3