AndreasXi commited on
Commit
ef391ef
·
1 Parent(s): e2dd3f3

update web

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -87,7 +87,7 @@ def generate_audio_gradio(
87
  seed,
88
  variant,
89
  ):
90
- dtype = torch.bfloat16
91
  if duration <= 0 or num_steps <= 0:
92
  raise ValueError("Duration and number of steps must be positive.")
93
  if variant not in all_model_cfg:
@@ -180,7 +180,7 @@ gr_interface = gr.Interface(
180
  outputs=["text", "audio"],
181
  title="MeanAudio: Fast and Faithful Text-to-Audio Generation with Mean Flows",
182
  description="",
183
- allow_flagging=False,
184
  examples=[
185
  ["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!"],
186
  ["Melodic human whistling harmonizing with natural birdsong"],
 
87
  seed,
88
  variant,
89
  ):
90
+
91
  if duration <= 0 or num_steps <= 0:
92
  raise ValueError("Duration and number of steps must be positive.")
93
  if variant not in all_model_cfg:
 
180
  outputs=["text", "audio"],
181
  title="MeanAudio: Fast and Faithful Text-to-Audio Generation with Mean Flows",
182
  description="",
183
+ flagging_mode="never",
184
  examples=[
185
  ["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!"],
186
  ["Melodic human whistling harmonizing with natural birdsong"],