Matthijs Hollemans commited on
Commit
1bb7c1d
1 Parent(s): 4aebdfa

add more examples

Browse files
app.py CHANGED
@@ -98,7 +98,7 @@ def predict(audio_path):
98
  audio_inputs = librosa.resample(audio_data, orig_sr=sr, target_sr=pipe.feature_extractor.sampling_rate)
99
  output = pipe(audio_inputs, chunk_length_s=30, stride_length_s=[4, 2], return_timestamps="word")
100
  chunks = output["chunks"]
101
- print(chunks)
102
 
103
  # Create the video.
104
  clip = mpy.VideoClip(make_frame, duration=duration)
@@ -123,6 +123,8 @@ article = """
123
 
124
  <ul>
125
  <li>Shakespeare's "Henry V" speech from <a href="https://freesound.org/people/acclivity/sounds/24096/">acclivity</a> (CC BY-NC 4.0 license)
 
 
126
  <li>Lato font by Łukasz Dziedzic (licensed under Open Font License)</li>
127
  <li>Whisper model by OpenAI</li>
128
  </ul>
@@ -131,7 +133,9 @@ article = """
131
  """
132
 
133
  examples = [
 
134
  "examples/henry5.wav",
 
135
  ]
136
 
137
  gr.Interface(
 
98
  audio_inputs = librosa.resample(audio_data, orig_sr=sr, target_sr=pipe.feature_extractor.sampling_rate)
99
  output = pipe(audio_inputs, chunk_length_s=30, stride_length_s=[4, 2], return_timestamps="word")
100
  chunks = output["chunks"]
101
+ #print(chunks)
102
 
103
  # Create the video.
104
  clip = mpy.VideoClip(make_frame, duration=duration)
 
123
 
124
  <ul>
125
  <li>Shakespeare's "Henry V" speech from <a href="https://freesound.org/people/acclivity/sounds/24096/">acclivity</a> (CC BY-NC 4.0 license)
126
+ <li>"Here's to the Crazy Ones" speech by Steve Jobs</li>
127
+ <li>"Stupid People" comedy routine by Bill Engvall</li>
128
  <li>Lato font by Łukasz Dziedzic (licensed under Open Font License)</li>
129
  <li>Whisper model by OpenAI</li>
130
  </ul>
 
133
  """
134
 
135
  examples = [
136
+ "examples/steve_jobs_crazy_ones.mp3",
137
  "examples/henry5.wav",
138
+ "examples/stupid_people.mp3",
139
  ]
140
 
141
  gr.Interface(
examples/steve_jobs_crazy_ones.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:adc4eb3004ef2878dd694a893ec9cd0c1e2ccc749f8a47aaf4d7fdbdad33cb42
3
+ size 1467173
examples/stupid_people.mp3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b91f0d180d32a75bc911a22b9331c60b70200087df16e6a422d949e669606ec8
3
+ size 498736