Spaces:
Running
on
Zero
Running
on
Zero
Rex Cheng
commited on
Commit
·
03013d2
1
Parent(s):
aa02454
add examples
Browse files- app.py +101 -1
- mmaudio/utils/download_utils.py +1 -1
app.py
CHANGED
|
@@ -136,7 +136,107 @@ video_to_audio_tab = gr.Interface(
|
|
| 136 |
outputs='playable_video',
|
| 137 |
cache_examples=False,
|
| 138 |
title='MMAudio — Video-to-Audio Synthesis',
|
| 139 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 140 |
|
| 141 |
text_to_audio_tab = gr.Interface(
|
| 142 |
fn=text_to_audio,
|
|
|
|
| 136 |
outputs='playable_video',
|
| 137 |
cache_examples=False,
|
| 138 |
title='MMAudio — Video-to-Audio Synthesis',
|
| 139 |
+
examples=[
|
| 140 |
+
[
|
| 141 |
+
'https://huggingface.co/hkchengrex/MMAudio/resolve/main/examples/sora_nyc.mp4',
|
| 142 |
+
'',
|
| 143 |
+
'',
|
| 144 |
+
0,
|
| 145 |
+
25,
|
| 146 |
+
4.5,
|
| 147 |
+
10,
|
| 148 |
+
],
|
| 149 |
+
[
|
| 150 |
+
'https://huggingface.co/hkchengrex/MMAudio/resolve/main/examples/sora_serpent.mp4',
|
| 151 |
+
'',
|
| 152 |
+
'music',
|
| 153 |
+
0,
|
| 154 |
+
25,
|
| 155 |
+
4.5,
|
| 156 |
+
10,
|
| 157 |
+
],
|
| 158 |
+
[
|
| 159 |
+
'https://huggingface.co/hkchengrex/MMAudio/resolve/main/examples/sora_seahorse.mp4',
|
| 160 |
+
'bubbles',
|
| 161 |
+
'',
|
| 162 |
+
0,
|
| 163 |
+
25,
|
| 164 |
+
4.5,
|
| 165 |
+
10,
|
| 166 |
+
],
|
| 167 |
+
[
|
| 168 |
+
'https://huggingface.co/hkchengrex/MMAudio/resolve/main/examples/sora_india.mp4',
|
| 169 |
+
'Indian holy music',
|
| 170 |
+
'',
|
| 171 |
+
0,
|
| 172 |
+
25,
|
| 173 |
+
4.5,
|
| 174 |
+
10,
|
| 175 |
+
],
|
| 176 |
+
[
|
| 177 |
+
'https://huggingface.co/hkchengrex/MMAudio/resolve/main/examples/sora_galloping.mp4',
|
| 178 |
+
'galloping',
|
| 179 |
+
'',
|
| 180 |
+
0,
|
| 181 |
+
25,
|
| 182 |
+
4.5,
|
| 183 |
+
10,
|
| 184 |
+
],
|
| 185 |
+
[
|
| 186 |
+
'https://huggingface.co/hkchengrex/MMAudio/resolve/main/examples/sora_beach.mp4',
|
| 187 |
+
'waves, seagulls',
|
| 188 |
+
'',
|
| 189 |
+
0,
|
| 190 |
+
25,
|
| 191 |
+
4.5,
|
| 192 |
+
10,
|
| 193 |
+
],
|
| 194 |
+
[
|
| 195 |
+
'https://huggingface.co/hkchengrex/MMAudio/resolve/main/examples/sora_kraken.mp4',
|
| 196 |
+
'waves, storm',
|
| 197 |
+
'',
|
| 198 |
+
0,
|
| 199 |
+
25,
|
| 200 |
+
4.5,
|
| 201 |
+
10,
|
| 202 |
+
],
|
| 203 |
+
[
|
| 204 |
+
'https://huggingface.co/hkchengrex/MMAudio/resolve/main/examples/mochi_storm.mp4',
|
| 205 |
+
'storm',
|
| 206 |
+
'',
|
| 207 |
+
0,
|
| 208 |
+
25,
|
| 209 |
+
4.5,
|
| 210 |
+
10,
|
| 211 |
+
],
|
| 212 |
+
[
|
| 213 |
+
'https://huggingface.co/hkchengrex/MMAudio/resolve/main/examples/hunyuan_spring.mp4',
|
| 214 |
+
'',
|
| 215 |
+
'',
|
| 216 |
+
0,
|
| 217 |
+
25,
|
| 218 |
+
4.5,
|
| 219 |
+
10,
|
| 220 |
+
],
|
| 221 |
+
[
|
| 222 |
+
'https://huggingface.co/hkchengrex/MMAudio/resolve/main/examples/hunyuan_typing.mp4',
|
| 223 |
+
'typing',
|
| 224 |
+
'',
|
| 225 |
+
0,
|
| 226 |
+
25,
|
| 227 |
+
4.5,
|
| 228 |
+
10,
|
| 229 |
+
],
|
| 230 |
+
[
|
| 231 |
+
'https://huggingface.co/hkchengrex/MMAudio/resolve/main/examples/hunyuan_wake_up.mp4',
|
| 232 |
+
'',
|
| 233 |
+
'',
|
| 234 |
+
0,
|
| 235 |
+
25,
|
| 236 |
+
4.5,
|
| 237 |
+
10,
|
| 238 |
+
],
|
| 239 |
+
])
|
| 240 |
|
| 241 |
text_to_audio_tab = gr.Interface(
|
| 242 |
fn=text_to_audio,
|
mmaudio/utils/download_utils.py
CHANGED
|
@@ -30,7 +30,7 @@ links = [
|
|
| 30 |
},
|
| 31 |
{
|
| 32 |
'name': 'mmaudio_large_44k_v2.pth',
|
| 33 |
-
'url': 'https://
|
| 34 |
'md5': '01ad4464f049b2d7efdaa4c1a59b8dfe'
|
| 35 |
},
|
| 36 |
{
|
|
|
|
| 30 |
},
|
| 31 |
{
|
| 32 |
'name': 'mmaudio_large_44k_v2.pth',
|
| 33 |
+
'url': 'https://huggingface.co/hkchengrex/MMAudio/resolve/main/weights/mmaudio_large_44k_v2.pth',
|
| 34 |
'md5': '01ad4464f049b2d7efdaa4c1a59b8dfe'
|
| 35 |
},
|
| 36 |
{
|