Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 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="
|
| 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 |
|