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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -43,11 +43,11 @@ 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.Textbox(label="New Sentence to Pronounce", interactive=False) # Shows the new sentence
51
  ],
52
  title="Pronunciation Evaluator",
53
  description="Record yourself pronouncing the given sentence and receive feedback. A new sentence will be provided after each evaluation."
 
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",
53
  description="Record yourself pronouncing the given sentence and receive feedback. A new sentence will be provided after each evaluation."