Spaces:
Build error
Build error
work on app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ def get_record(language,text,record):
|
|
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 =
|
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 =
|
34 |
title=title,
|
35 |
description=description,
|
36 |
enable_queue=True,
|
|
|
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 = 'Record for 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 = "text",
|
34 |
title=title,
|
35 |
description=description,
|
36 |
enable_queue=True,
|