Spaces:
Runtime error
Runtime error
Update generate_audio function documentation: specify maximum duration and adjust layout settings in Gradio interface
Browse files
app.py
CHANGED
|
@@ -156,7 +156,7 @@ def generate_audio(prompt: str, duration: int) -> gr.Component:
|
|
| 156 |
Generate audio from a text prompt using MusicGen.
|
| 157 |
Args:
|
| 158 |
prompt: The text prompt to generate the audio from.
|
| 159 |
-
duration: Duration of the generated audio in seconds.
|
| 160 |
|
| 161 |
Returns:
|
| 162 |
gr.Component: The generated audio as a Gradio Audio component.
|
|
@@ -177,7 +177,7 @@ def generate_audio_from_sample(prompt: str, duration: int, sample: list[int, np.
|
|
| 177 |
Generate audio from a text prompt + audio sample using MusicGen.
|
| 178 |
Args:
|
| 179 |
prompt: The text prompt to generate the audio from.
|
| 180 |
-
duration: Duration of the generated audio in seconds.
|
| 181 |
sample: Optional audio sample to guide generation.
|
| 182 |
|
| 183 |
Returns:
|
|
@@ -281,7 +281,7 @@ with gr.Blocks() as demo:
|
|
| 281 |
title='MultiAgent System for Screenplay Creation and Editing',
|
| 282 |
show_progress='full',
|
| 283 |
fill_height=True,
|
| 284 |
-
fill_width=
|
| 285 |
save_history=True,
|
| 286 |
additional_inputs=[
|
| 287 |
gr.Checkbox(value=False, label="Web Search",
|
|
|
|
| 156 |
Generate audio from a text prompt using MusicGen.
|
| 157 |
Args:
|
| 158 |
prompt: The text prompt to generate the audio from.
|
| 159 |
+
duration: Duration of the generated audio in seconds. Max 30 seconds.
|
| 160 |
|
| 161 |
Returns:
|
| 162 |
gr.Component: The generated audio as a Gradio Audio component.
|
|
|
|
| 177 |
Generate audio from a text prompt + audio sample using MusicGen.
|
| 178 |
Args:
|
| 179 |
prompt: The text prompt to generate the audio from.
|
| 180 |
+
duration: Duration of the generated audio in seconds. Max 30 seconds.
|
| 181 |
sample: Optional audio sample to guide generation.
|
| 182 |
|
| 183 |
Returns:
|
|
|
|
| 281 |
title='MultiAgent System for Screenplay Creation and Editing',
|
| 282 |
show_progress='full',
|
| 283 |
fill_height=True,
|
| 284 |
+
fill_width=True,
|
| 285 |
save_history=True,
|
| 286 |
additional_inputs=[
|
| 287 |
gr.Checkbox(value=False, label="Web Search",
|