Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -215,7 +215,6 @@ with gr.Blocks(title="Orpheus Text-to-Speech") as demo:
|
|
| 215 |
gemini_api_key = gr.Textbox(label="Gemini API Key", type="password")
|
| 216 |
prompt = gr.Textbox(label="Prompt", lines=8, placeholder="Enter your text here...")
|
| 217 |
uploaded_file = gr.File(label="Upload File")
|
| 218 |
-
generate_script_btn = gr.Button("Generate Podcast Script")
|
| 219 |
|
| 220 |
with gr.Column(scale=2):
|
| 221 |
duration = gr.Slider(minimum=1, maximum=60, value=5, step=1, label="Duration (minutes)")
|
|
@@ -261,6 +260,7 @@ with gr.Blocks(title="Orpheus Text-to-Speech") as demo:
|
|
| 261 |
|
| 262 |
with gr.Column(scale=2):
|
| 263 |
script_output = gr.Textbox(label="Generated Script", lines=10)
|
|
|
|
| 264 |
audio_output = gr.Audio(label="Generated Speech", type="numpy")
|
| 265 |
|
| 266 |
generate_script_btn.click(
|
|
|
|
| 215 |
gemini_api_key = gr.Textbox(label="Gemini API Key", type="password")
|
| 216 |
prompt = gr.Textbox(label="Prompt", lines=8, placeholder="Enter your text here...")
|
| 217 |
uploaded_file = gr.File(label="Upload File")
|
|
|
|
| 218 |
|
| 219 |
with gr.Column(scale=2):
|
| 220 |
duration = gr.Slider(minimum=1, maximum=60, value=5, step=1, label="Duration (minutes)")
|
|
|
|
| 260 |
|
| 261 |
with gr.Column(scale=2):
|
| 262 |
script_output = gr.Textbox(label="Generated Script", lines=10)
|
| 263 |
+
generate_script_btn = gr.Button("Generate Podcast Script")
|
| 264 |
audio_output = gr.Audio(label="Generated Speech", type="numpy")
|
| 265 |
|
| 266 |
generate_script_btn.click(
|