RakanAlsheraiwi commited on
Commit
2a3c603
1 Parent(s): 49cda4a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -32,14 +32,15 @@ def get_sentence():
32
  ]
33
  return random.choice(sentences)
34
 
35
- # Gradio Interface
36
  sentence = get_sentence()
37
 
 
38
  interface = gr.Interface(
39
  fn=pronunciation_evaluator,
40
  inputs=[
41
  gr.Audio(type="filepath", label="Record your pronunciation"),
42
- gr.Textbox(lines=2, label="Sentence to pronounce", value=sentence, readonly=True)
43
  ],
44
  outputs="text",
45
  title="Pronunciation Evaluator",
 
32
  ]
33
  return random.choice(sentences)
34
 
35
+ # Get the sentence to pronounce
36
  sentence = get_sentence()
37
 
38
+ # Gradio Interface
39
  interface = gr.Interface(
40
  fn=pronunciation_evaluator,
41
  inputs=[
42
  gr.Audio(type="filepath", label="Record your pronunciation"),
43
+ gr.Textbox(lines=2, label="Sentence to pronounce", value=sentence, interactive=False)
44
  ],
45
  outputs="text",
46
  title="Pronunciation Evaluator",