Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -217,6 +217,11 @@ with gr.Blocks(title="Orpheus Text-to-Speech") as demo:
|
|
217 |
prompt = gr.Textbox(label="Prompt", lines=8, placeholder="Enter your text here...")
|
218 |
uploaded_file = gr.File(label="Upload File")
|
219 |
|
|
|
|
|
|
|
|
|
|
|
220 |
with gr.Column(scale=2):
|
221 |
duration = gr.Slider(minimum=1, maximum=60, value=5, step=1, label="Duration (minutes)")
|
222 |
num_hosts = gr.Radio(["1", "2"], label="Number of Hosts", value="1")
|
@@ -258,11 +263,6 @@ with gr.Blocks(title="Orpheus Text-to-Speech") as demo:
|
|
258 |
with gr.Row():
|
259 |
submit_btn = gr.Button("Generate Speech", variant="primary")
|
260 |
clear_btn = gr.Button("Clear")
|
261 |
-
|
262 |
-
with gr.Column(scale=2):
|
263 |
-
script_output = gr.Textbox(label="Generated Script", lines=10)
|
264 |
-
generate_script_btn = gr.Button("Generate Podcast Script")
|
265 |
-
audio_output = gr.Audio(label="Generated Speech", type="numpy")
|
266 |
|
267 |
generate_script_btn.click(
|
268 |
fn=generate_podcast_script,
|
|
|
217 |
prompt = gr.Textbox(label="Prompt", lines=8, placeholder="Enter your text here...")
|
218 |
uploaded_file = gr.File(label="Upload File")
|
219 |
|
220 |
+
with gr.Column(scale=2):
|
221 |
+
script_output = gr.Textbox(label="Generated Script", lines=10)
|
222 |
+
generate_script_btn = gr.Button("Generate Podcast Script")
|
223 |
+
audio_output = gr.Audio(label="Generated Speech", type="numpy")
|
224 |
+
|
225 |
with gr.Column(scale=2):
|
226 |
duration = gr.Slider(minimum=1, maximum=60, value=5, step=1, label="Duration (minutes)")
|
227 |
num_hosts = gr.Radio(["1", "2"], label="Number of Hosts", value="1")
|
|
|
263 |
with gr.Row():
|
264 |
submit_btn = gr.Button("Generate Speech", variant="primary")
|
265 |
clear_btn = gr.Button("Clear")
|
|
|
|
|
|
|
|
|
|
|
266 |
|
267 |
generate_script_btn.click(
|
268 |
fn=generate_podcast_script,
|