stardate69 commited on
Commit
e385a06
·
verified ·
1 Parent(s): f02052e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -38,7 +38,7 @@ def generate_audio(prompt: str):
38
  sf.write(output_path, output_audio, pipe.vae.sampling_rate)
39
 
40
  # Construct full URL to access the generated file
41
- audio_url = f"https://<your-hf-space-name>.hf.space/audio/{output_filename}"
42
 
43
  return audio_url
44
 
@@ -47,7 +47,7 @@ interface = gr.Interface(
47
  fn=generate_audio,
48
  inputs=gr.Textbox(label="Enter a text prompt to generate audio"),
49
  outputs=gr.Textbox(label="Generated Audio URL"),
50
- title="StableAudioText2Speech",
51
  description="Generate audio from a text prompt using Hugging Face StableAudio Pipeline."
52
  )
53
 
 
38
  sf.write(output_path, output_audio, pipe.vae.sampling_rate)
39
 
40
  # Construct full URL to access the generated file
41
+ audio_url = f"https://huggingface.co/spaces/stardate69/StableAudioOpenEndpoint/audio/{output_filename}"
42
 
43
  return audio_url
44
 
 
47
  fn=generate_audio,
48
  inputs=gr.Textbox(label="Enter a text prompt to generate audio"),
49
  outputs=gr.Textbox(label="Generated Audio URL"),
50
+ title="StableAudioText2Audio",
51
  description="Generate audio from a text prompt using Hugging Face StableAudio Pipeline."
52
  )
53