chrisjay commited on
Commit
84bdfa3
1 Parent(s): 13fc77a

work on app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -9,8 +9,8 @@ def get_record(language,text,record):
9
  # Save text and its corresponding record to flag
10
 
11
  text =text.strip()
12
- output_string = "<html> <body> <div class='output'>"+f'Record for text {text} successfully saved to dataset! Thank You.'+"</div> </body> </html>"
13
-
14
  return output_string
15
 
16
  title = 'African Crowdsource Speech'
@@ -30,7 +30,7 @@ gr.Interface(fn=get_record,
30
  gr.inputs.Textbox(placeholder='Write your text'),
31
  gr.inputs.Audio(source="microphone",label='Record your voice')
32
  ],
33
- outputs = gr.outputs.HTML(),
34
  title=title,
35
  description=description,
36
  enable_queue=True,
 
9
  # Save text and its corresponding record to flag
10
 
11
  text =text.strip()
12
+ #output_string = "<html> <body> <div class='output'>"+f'Record for text {text} successfully saved to dataset! Thank You.'+"</div> </body> </html>"
13
+ output_string = f'Record for text {text} successfully saved to dataset! Thank You.'
14
  return output_string
15
 
16
  title = 'African Crowdsource Speech'
 
30
  gr.inputs.Textbox(placeholder='Write your text'),
31
  gr.inputs.Audio(source="microphone",label='Record your voice')
32
  ],
33
+ outputs = gr.outputs.Textbox(),
34
  title=title,
35
  description=description,
36
  enable_queue=True,