fomext commited on
Commit
95d59d4
·
verified ·
1 Parent(s): 746681b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -64,11 +64,12 @@ async def generate(prompt: str, duration: float = 10.0):
64
  with torch.no_grad():
65
  output = pipe(
66
  prompt=prompt,
67
- duration=duration,
68
  guidance_scale=7.5,
69
- num_inference_steps=150, # safer for HF
70
  )
71
 
 
72
  audio = output.audios[0]
73
 
74
  filename = f"{uuid.uuid4().hex}.wav"
 
64
  with torch.no_grad():
65
  output = pipe(
66
  prompt=prompt,
67
+ audio_length_in_s=duration,
68
  guidance_scale=7.5,
69
+ num_inference_steps=150,
70
  )
71
 
72
+
73
  audio = output.audios[0]
74
 
75
  filename = f"{uuid.uuid4().hex}.wav"