Ahsen Khaliq commited on
Commit
7033345
1 Parent(s): 7c46089

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -71,6 +71,7 @@ title = "Hubert-xlarge-ls960-ft"
71
  description = "Gradio demo for hubert-xlarge-ls960-ft. To use it, simply add your audio file and image, or click one of the examples to load them. Read more at the links below."
72
  article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2106.07447'>HuBERT: Self-Supervised Speech Representation Learning by Masked Prediction of Hidden Units</a> | <a href='https://github.com/pytorch/fairseq/tree/main/examples/hubert'>Github Repo</a></p>"
73
 
 
74
  gr.Interface(
75
  inference,
76
  [gr.inputs.Audio(type='file'),gr.inputs.Image(type="file", label="Input")],
@@ -78,5 +79,6 @@ gr.Interface(
78
  title=title,
79
  description=description,
80
  article=article,
81
- enable_queue=True
 
82
  ).launch(debug=True)
71
  description = "Gradio demo for hubert-xlarge-ls960-ft. To use it, simply add your audio file and image, or click one of the examples to load them. Read more at the links below."
72
  article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2106.07447'>HuBERT: Self-Supervised Speech Representation Learning by Masked Prediction of Hidden Units</a> | <a href='https://github.com/pytorch/fairseq/tree/main/examples/hubert'>Github Repo</a></p>"
73
 
74
+ examples = [['sample.wav','example.jpeg']]
75
  gr.Interface(
76
  inference,
77
  [gr.inputs.Audio(type='file'),gr.inputs.Image(type="file", label="Input")],
79
  title=title,
80
  description=description,
81
  article=article,
82
+ enable_queue=True,
83
+ examples=examples
84
  ).launch(debug=True)