multimodalart HF Staff commited on
Commit
0f322bd
·
verified ·
1 Parent(s): 58f0394

Pin gradio 6.17.3 (hub 0.36.2 compat) and add three example hums

Browse files
Files changed (5) hide show
  1. .gitattributes +2 -0
  2. README.md +1 -1
  3. app.py +40 -1
  4. examples/hum_02.wav +3 -0
  5. examples/hum_03.wav +3 -0
.gitattributes CHANGED
@@ -34,3 +34,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  examples/hum_01.wav filter=lfs diff=lfs merge=lfs -text
 
 
 
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
  examples/hum_01.wav filter=lfs diff=lfs merge=lfs -text
37
+ examples/hum_02.wav filter=lfs diff=lfs merge=lfs -text
38
+ examples/hum_03.wav filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -4,7 +4,7 @@ emoji: 🎤
4
  colorFrom: gray
5
  colorTo: pink
6
  sdk: gradio
7
- sdk_version: 6.27.0
8
  app_file: app.py
9
  short_description: Hum a melody, get a finished song
10
  python_version: "3.12"
 
4
  colorFrom: gray
5
  colorTo: pink
6
  sdk: gradio
7
+ sdk_version: 6.17.3
8
  app_file: app.py
9
  short_description: Hum a melody, get a finished song
10
  python_version: "3.12"
app.py CHANGED
@@ -522,8 +522,47 @@ CSS = """
522
  .dark .gradio-container { color: var(--body-text-color); }
523
  """
524
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
525
  EXAMPLES = [
526
- ["examples/hum_01.wav", DEFAULT_STYLE, DEFAULT_LYRICS],
 
 
527
  ]
528
 
529
  with gr.Blocks(theme=gr.themes.Citrus(), css=CSS, title="Hum to Song") as demo:
 
522
  .dark .gradio-container { color: var(--body-text-color); }
523
  """
524
 
525
+ WALTZ_STYLE = ("Indie folk waltz, 3/4, warm female lead vocal, fingerpicked acoustic guitar, "
526
+ "upright bass, brushed drums, intimate, nostalgic")
527
+ WALTZ_LYRICS = """[Intro]
528
+
529
+ [Verse]
530
+ Count the streetlights one two three
531
+ Slowly turning back to me
532
+ Every window keeps a song
533
+ Something I have hummed along
534
+
535
+ [Chorus]
536
+ Carry me around again
537
+ Slow and easy like it was then
538
+ Carry me around again
539
+
540
+ [Outro]
541
+ Slowly turning back to me
542
+ """
543
+
544
+ JAZZ_STYLE = "Jazz-funk, warm lead vocal, Rhodes piano, electric bass, tight drums, brass stabs"
545
+ JAZZ_LYRICS = """[Intro]
546
+
547
+ [Verse]
548
+ Morning on the avenue, coffee going cold
549
+ Somebody is playing something seventy years old
550
+ Out here on the corner where the traffic learns to swing
551
+ I have got a little melody and nothing else to bring
552
+
553
+ [Chorus]
554
+ So play it like you mean it
555
+ Play it till the daylight ends
556
+ Play it like you mean it
557
+
558
+ [Outro]
559
+ Play it till the daylight ends
560
+ """
561
+
562
  EXAMPLES = [
563
+ ["examples/hum_02.wav", DEFAULT_STYLE, DEFAULT_LYRICS],
564
+ ["examples/hum_01.wav", WALTZ_STYLE, WALTZ_LYRICS],
565
+ ["examples/hum_03.wav", JAZZ_STYLE, JAZZ_LYRICS],
566
  ]
567
 
568
  with gr.Blocks(theme=gr.themes.Citrus(), css=CSS, title="Hum to Song") as demo:
examples/hum_02.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d9d7c0ea3bb02a25fb08bb766e3b1612a23e381471919c4aa09fc5d07a027352
3
+ size 485950
examples/hum_03.wav ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e3de50cca2526efe64ad1001bbe2c01a2d3c927f9859cd084ab82c9f1aaa4b53
3
+ size 544896