yellowcandle commited on
Commit
5ad2f2b
1 Parent(s): 0bbcfe0

fixed error

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -37,7 +37,7 @@ def transcribe_audio(audio, model_id):
37
  return result["text"]
38
 
39
  @spaces.GPU(duration=180)
40
- def proofread(prompt, text):
41
  if text is None:
42
  return "Please provide the transcribed text for proofreading."
43
 
@@ -79,6 +79,6 @@ with gr.Blocks() as demo:
79
 
80
  transcribe_button.click(transcribe_audio, inputs=[audio, model_dropdown], outputs=transcribed_text)
81
  proofread_button.click(proofread, inputs=[transcribed_text], outputs=proofread_output)
82
- transcribed_text.change(proofread, inputs=["", transcribed_text], outputs=proofread_output)
83
 
84
  demo.launch()
 
37
  return result["text"]
38
 
39
  @spaces.GPU(duration=180)
40
+ def proofread(text):
41
  if text is None:
42
  return "Please provide the transcribed text for proofreading."
43
 
 
79
 
80
  transcribe_button.click(transcribe_audio, inputs=[audio, model_dropdown], outputs=transcribed_text)
81
  proofread_button.click(proofread, inputs=[transcribed_text], outputs=proofread_output)
82
+ transcribed_text.change(proofread, inputs=[transcribed_text], outputs=proofread_output)
83
 
84
  demo.launch()