AndreasXi commited on
Commit
0685a2c
·
1 Parent(s): d712cde

update web

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -67,7 +67,7 @@ def load_model_cache():
67
  mode=model_cfg.mode,
68
  bigvgan_vocoder_ckpt=model_cfg.bigvgan_16k_path,
69
  need_vae_encoder=False
70
- )
71
  FEATURE_UTILS_CACHE['default'] = feature_utils
72
 
73
 
@@ -176,18 +176,18 @@ gr_interface = gr.Interface(
176
  description="",
177
  flagging_mode="never",
178
  examples=[
179
- ["Generate the festive sounds of a fireworks show: explosions lighting up the sky, crowd cheering, and the faint music playing in the background!! Celebration of the new year!"],
180
- ["Melodic human whistling harmonizing with natural birdsong"],
181
- ["A parade marches through a town square, with drumbeats pounding, children clapping, and a horse neighing amidst the commotion"],
182
- ["Quiet speech and then and airplane flying away"],
183
- ["A soccer ball hits a goalpost with a metallic clang, followed by cheers, clapping, and the distant hum of a commentator’s voice"],
184
- ["A basketball bounces rhythmically on a court, shoes squeak against the floor, and a referee’s whistle cuts through the air"],
185
- ["Dripping water echoes sharply, a distant growl reverberates through the cavern, and soft scraping metal suggests something lurking unseen"],
186
- ["A cow is mooing whilst a lion is roaring in the background as a hunter shoots. A flock of birds subsequently fly away from the trees."],
187
- ["The deep growl of an alligator ripples through the swamp as reeds sway with a soft rustle and a turtle splashes into the murky water"],
188
- ["Gentle female voice cooing and baby responding with happy gurgles and giggles"],
189
- ['doorbell ding once followed by footsteps gradually getting louder and a door is opened '],
190
- ["A fork scrapes a plate, water drips slowly into a sink, and the faint hum of a refrigerator lingers in the background"]
191
  ],
192
  cache_examples="lazy", # Turn on to cache.
193
  )
 
67
  mode=model_cfg.mode,
68
  bigvgan_vocoder_ckpt=model_cfg.bigvgan_16k_path,
69
  need_vae_encoder=False
70
+ ).to(device, torch.bfloat16).eval()
71
  FEATURE_UTILS_CACHE['default'] = feature_utils
72
 
73
 
 
176
  description="",
177
  flagging_mode="never",
178
  examples=[
179
+ ["Generate the festive sounds of a fireworks show: explosions lighting up the sky, crowd cheering, and the faint music playing in the background!! Celebration of the new year!", 10, 4.5, 1, "meanaudio_s_full"],
180
+ ["Melodic human whistling harmonizing with natural birdsong", 10, 4.5, 1, "meanaudio_s_full"],
181
+ ["A parade marches through a town square, with drumbeats pounding, children clapping, and a horse neighing amidst the commotion", 10, 4.5, 1, "meanaudio_s_full"],
182
+ ["Quiet speech and then and airplane flying away", 10, 4.5, 1, "meanaudio_s_full"],
183
+ ["A soccer ball hits a goalpost with a metallic clang, followed by cheers, clapping, and the distant hum of a commentator’s voice", 10, 4.5, 1, "meanaudio_s_full"],
184
+ ["A basketball bounces rhythmically on a court, shoes squeak against the floor, and a referee’s whistle cuts through the air", 10, 4.5, 1, "meanaudio_s_full"],
185
+ ["Dripping water echoes sharply, a distant growl reverberates through the cavern, and soft scraping metal suggests something lurking unseen", 10, 4.5, 1, "meanaudio_s_full"],
186
+ ["A cow is mooing whilst a lion is roaring in the background as a hunter shoots. A flock of birds subsequently fly away from the trees.", 10, 4.5, 1, "meanaudio_s_full"],
187
+ ["The deep growl of an alligator ripples through the swamp as reeds sway with a soft rustle and a turtle splashes into the murky water", 10, 4.5, 1, "meanaudio_s_full"],
188
+ ["Gentle female voice cooing and baby responding with happy gurgles and giggles", 10, 4.5, 1, "meanaudio_s_full"],
189
+ ['doorbell ding once followed by footsteps gradually getting louder and a door is opened ', 10, 4.5, 1, "meanaudio_s_full"],
190
+ ["A fork scrapes a plate, water drips slowly into a sink, and the faint hum of a refrigerator lingers in the background", 10, 4.5, 1, "meanaudio_s_full"]
191
  ],
192
  cache_examples="lazy", # Turn on to cache.
193
  )