Tonic commited on
Commit
eee3bd2
·
unverified ·
1 Parent(s): e8edce5

add emogis

Browse files
Files changed (1) hide show
  1. main.py +11 -11
main.py CHANGED
@@ -17,7 +17,7 @@ import os
17
  from huggingface_hub import login
18
 
19
  title = """# 🙋🏻‍♂️Welcome to 🌟Tonic's 🎼Jasco🎶AudioCraft Demo"""
20
- description = """Facebook presents JASCO, a temporally controlled text-to-music generation model utilizing both symbolic and audio-based conditions. JASCO can generate high-quality music samples conditioned on global text descriptions along with fine-grained local controls. JASCO is based on the Flow Matching modeling paradigm together with a novel conditioning method, allowing for music generation controlled both locally (e.g., chords) and globally (text description)."""
21
  join_us = """
22
  ## Join us:
23
  🌟TeamTonic🌟 is always making cool demos! Join our active builder's 🛠️community 👻
@@ -278,12 +278,12 @@ with gr.Blocks() as demo:
278
 
279
  with gr.Row():
280
  with gr.Column():
281
- submit = gr.Button("Generate")
282
- interrupt_btn = gr.Button("Interrupt")
283
 
284
  with gr.Column():
285
- audio_output_0 = gr.Audio(label="Generated Audio 1", type='filepath')
286
- audio_output_1 = gr.Audio(label="Generated Audio 2", type='filepath')
287
 
288
  with gr.Row():
289
  with gr.Column():
@@ -300,18 +300,18 @@ with gr.Blocks() as demo:
300
 
301
  gr.Markdown("### Chords Conditions")
302
  chords_sym = gr.Text(
303
- label="Chord Progression",
304
  value="(C, 0.0), (D, 2.0), (F, 4.0), (Ab, 6.0), (Bb, 7.0), (C, 8.0)",
305
  interactive=True
306
  )
307
 
308
- gr.Markdown("### Drums Conditions")
309
  with gr.Row():
310
- drum_input_src = gr.Radio(["file", "mic"], value="file", label="Drums Input Source")
311
- drums_file = gr.Audio(sources=["upload"], type="numpy", label="Drums File")
312
- drums_mic = gr.Audio(sources=["microphone"], type="numpy", label="Drums Mic")
313
 
314
- gr.Markdown("### Melody Conditions")
315
  melody_file = gr.File(label="Melody File")
316
 
317
  with gr.Row():
 
17
  from huggingface_hub import login
18
 
19
  title = """# 🙋🏻‍♂️Welcome to 🌟Tonic's 🎼Jasco🎶AudioCraft Demo"""
20
+ description = """Facebook presents JASCO, a temporally controlled text-to-music generation model utilizing both symbolic and audio-based conditions. JASCO can generate high-quality music samples conditioned on global text descriptions along with fine-grained local controls. JASCO is based on the Flow Matching modeling paradigm together with a novel conditioning method, allowing for music generation controlled both locally (e.g., chords) and globally (text description). [run this demo locally](https://huggingface.co/spaces/Tonic/audiocraft?docker=true) or [embed this space](https://huggingface.co/spaces/Tonic/audiocraft?embed=true) or [duplicate this space](https://huggingface.co/spaces/Tonic/audiocraft?duplicate=true) to run it privately . you can also use this demo via API by clicking the link at the bottom of the page."""
21
  join_us = """
22
  ## Join us:
23
  🌟TeamTonic🌟 is always making cool demos! Join our active builder's 🛠️community 👻
 
278
 
279
  with gr.Row():
280
  with gr.Column():
281
+ submit = gr.Button("🎼Make Music")
282
+ interrupt_btn = gr.Button("Interrupt")
283
 
284
  with gr.Column():
285
+ audio_output_0 = gr.Audio(label="🎼Jasco Stem 1", type='filepath')
286
+ audio_output_1 = gr.Audio(label="🎼Jasco Stem 2", type='filepath')
287
 
288
  with gr.Row():
289
  with gr.Column():
 
300
 
301
  gr.Markdown("### Chords Conditions")
302
  chords_sym = gr.Text(
303
+ label="🎼Chord Progression",
304
  value="(C, 0.0), (D, 2.0), (F, 4.0), (Ab, 6.0), (Bb, 7.0), (C, 8.0)",
305
  interactive=True
306
  )
307
 
308
+ gr.Markdown("### 🥁Drums")
309
  with gr.Row():
310
+ drum_input_src = gr.Radio(["file", "mic"], value="file", label="🥁Drums Input Source")
311
+ drums_file = gr.Audio(sources=["upload"], type="numpy", label="🥁Drums File")
312
+ drums_mic = gr.Audio(sources=["microphone"], type="numpy", label="🥁🎙️Drums Mic")
313
 
314
+ gr.Markdown("### 🎶Melody Conditions")
315
  melody_file = gr.File(label="Melody File")
316
 
317
  with gr.Row():