Spaces:
Build error
Build error
changed output type to html
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ def get_record(language,text,record):
|
|
9 |
# Save text and its corresponding record to flag
|
10 |
|
11 |
text =text.strip()
|
12 |
-
output_string = f'Record for text {text} successfully saved to dataset! Thank You.'
|
13 |
return output_string
|
14 |
|
15 |
title = 'African Crowdsource Speech'
|
@@ -35,7 +35,7 @@ with block:
|
|
35 |
|
36 |
|
37 |
save = gr.Button("Save")
|
38 |
-
output = gr.outputs.
|
39 |
save.click(get_record, inputs=[language,text,record],outputs=output)
|
40 |
|
41 |
block.launch(enable_queue=True,show_error = True)
|
|
|
9 |
# Save text and its corresponding record to flag
|
10 |
|
11 |
text =text.strip()
|
12 |
+
output_string = "<div class='output'>"+f'Record for text {text} successfully saved to dataset! Thank You.'+"</div>"
|
13 |
return output_string
|
14 |
|
15 |
title = 'African Crowdsource Speech'
|
|
|
35 |
|
36 |
|
37 |
save = gr.Button("Save")
|
38 |
+
output = gr.outputs.HTML()
|
39 |
save.click(get_record, inputs=[language,text,record],outputs=output)
|
40 |
|
41 |
block.launch(enable_queue=True,show_error = True)
|