RakanAlsheraiwi commited on
Commit
666427e
1 Parent(s): 8af790c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -43,10 +43,12 @@ interface = gr.Interface(
43
  fn=pronunciation_evaluator,
44
  inputs=[
45
  gr.Audio(type="filepath", label="Record your pronunciation"),
 
46
  gr.State(value=initial_sentence) # Holds the current sentence
47
  ],
48
  outputs=[
49
  "text",
 
50
  gr.State() # The new sentence will be stored as the state for the next input
51
  ],
52
  title="Pronunciation Evaluator",
 
43
  fn=pronunciation_evaluator,
44
  inputs=[
45
  gr.Audio(type="filepath", label="Record your pronunciation"),
46
+ gr.Textbox(lines=2, label="Sentence to Pronounce", value=initial_sentence, interactive=False), # Display the sentence
47
  gr.State(value=initial_sentence) # Holds the current sentence
48
  ],
49
  outputs=[
50
  "text",
51
+ gr.Textbox(label="New Sentence to Pronounce", interactive=False), # Display the new sentence
52
  gr.State() # The new sentence will be stored as the state for the next input
53
  ],
54
  title="Pronunciation Evaluator",