onlybetheone commited on
Commit
4e0151a
·
1 Parent(s): 27292dd
Files changed (1) hide show
  1. app.py +26 -1
app.py CHANGED
@@ -191,7 +191,32 @@ def main():
191
  output_sample_rate,
192
  max_generate_audio_seconds],
193
  outputs=music_con_output)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
194
  demo.launch()
195
 
196
  if __name__ == '__main__':
197
- main()
 
191
  output_sample_rate,
192
  max_generate_audio_seconds],
193
  outputs=music_con_output)
194
+
195
+ t2m_demo = gr.Interface(fn=demo_inspiremusic_t2m,
196
+ inputs=[
197
+ gr.Textbox(
198
+ label="Input Text (For Text-to-Music Task)",
199
+ value="Experience soothing and sensual instrumental jazz with a touch of Bossa Nova, perfect for a relaxing restaurant or spa ambiance.")
200
+ ],
201
+ outputs=[
202
+ gr.Audio(label="Output Audio", type="filepath"),
203
+ ],
204
+ title="InspireMusic",
205
+ description=("test"),
206
+ article=(
207
+ "<p style='text-align: center'><a href='https://arxiv.org/abs/2206.07293' target='_blank'>FRCRN: Boosting Feature Representation Using Frequency Recurrence for Monaural Speech Enhancement (ICASSP 2022)</a> </p>"
208
+ "<p style='text-align: center'><a href='https://arxiv.org/abs/2312.11825' target='_blank'>MossFormer2: Combining Transformer and RNN-Free Recurrent Network for Enhanced Time-Domain Monaural Speech Separation (ICASSP 2024)</a> </p>"
209
+ "<p style='text-align: center'><a href='https://arxiv.org/abs/2501.10045' target='_blank'>HiFi-SR: A Unified Generative Transformer-Convolutional Adversarial Network for High-Fidelity Speech Super-Resolution (ICASSP 2025)</a> </p>"),
210
+ examples=[
211
+ ["examples/sample.wav", True],
212
+ ],
213
+ cache_examples=True)
214
+ with gr.Blocks():
215
+ gr.TabbedInterface([demo, t2m_demo],
216
+ ["Task 1",
217
+ "Task 2"])
218
+
219
  demo.launch()
220
 
221
  if __name__ == '__main__':
222
+ main()