Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -222,7 +222,6 @@ with gr.Blocks(title="Orpheus Text-to-Speech") as demo:
|
|
222 |
duration = gr.Slider(minimum=1, maximum=60, value=5, step=1, label="Duration (minutes)")
|
223 |
num_hosts = gr.Radio(["1", "2"], label="Number of Hosts", value="1")
|
224 |
script_output = gr.Textbox(label="Generated Script", lines=10)
|
225 |
-
audio_output = gr.Audio(label="Generated Audio", type="numpy")
|
226 |
generate_script_btn = gr.Button("Generate Podcast Script")
|
227 |
|
228 |
with gr.Column(scale=2):
|
@@ -238,7 +237,7 @@ with gr.Blocks(title="Orpheus Text-to-Speech") as demo:
|
|
238 |
label="Voice 2",
|
239 |
info="Select the second voice for speech generation"
|
240 |
)
|
241 |
-
|
242 |
with gr.Accordion("Advanced Settings", open=False):
|
243 |
temperature = gr.Slider(
|
244 |
minimum=0.1, maximum=1.5, value=0.6, step=0.05,
|
@@ -260,7 +259,8 @@ with gr.Blocks(title="Orpheus Text-to-Speech") as demo:
|
|
260 |
label="Max Length",
|
261 |
info="Maximum length of generated audio (in tokens)"
|
262 |
)
|
263 |
-
|
|
|
264 |
with gr.Row():
|
265 |
submit_btn = gr.Button("Generate Audio", variant="primary")
|
266 |
clear_btn = gr.Button("Clear")
|
|
|
222 |
duration = gr.Slider(minimum=1, maximum=60, value=5, step=1, label="Duration (minutes)")
|
223 |
num_hosts = gr.Radio(["1", "2"], label="Number of Hosts", value="1")
|
224 |
script_output = gr.Textbox(label="Generated Script", lines=10)
|
|
|
225 |
generate_script_btn = gr.Button("Generate Podcast Script")
|
226 |
|
227 |
with gr.Column(scale=2):
|
|
|
237 |
label="Voice 2",
|
238 |
info="Select the second voice for speech generation"
|
239 |
)
|
240 |
+
|
241 |
with gr.Accordion("Advanced Settings", open=False):
|
242 |
temperature = gr.Slider(
|
243 |
minimum=0.1, maximum=1.5, value=0.6, step=0.05,
|
|
|
259 |
label="Max Length",
|
260 |
info="Maximum length of generated audio (in tokens)"
|
261 |
)
|
262 |
+
|
263 |
+
audio_output = gr.Audio(label="Generated Audio", type="numpy")
|
264 |
with gr.Row():
|
265 |
submit_btn = gr.Button("Generate Audio", variant="primary")
|
266 |
clear_btn = gr.Button("Clear")
|