chrisjay commited on
Commit
0053c1f
·
1 Parent(s): ef70edd

changed output type to html

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.Textbox(type="auto")
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)