Spaces:
Sleeping
Sleeping
yellowcandle
commited on
Commit
•
5ad2f2b
1
Parent(s):
0bbcfe0
fixed error
Browse files
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(
|
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=[
|
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()
|