Commit ·
cfcf74e
1
Parent(s): 8586104
Feat: expose processing mode inside Text to Speech tab
Browse files
app.py
CHANGED
|
@@ -660,6 +660,11 @@ with gr.Blocks(title="Maya: Immersive Manga AI", css=CUSTOM_CSS) as demo:
|
|
| 660 |
)
|
| 661 |
|
| 662 |
input_text = gr.Textbox(lines=10, label="✍️ Paste or Type your story here", placeholder="Enter English text...", elem_id="tts_input_textarea", max_length=150000)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 663 |
voice_style_std = gr.Dropdown(choices=VOICE_STYLES, value=VOICE_STYLES[0], label="Voice Tone")
|
| 664 |
spicy_mode_std = gr.Checkbox(label="Spicy/18+ Mode (Intimate Translation)", value=False)
|
| 665 |
submit_std = gr.Button("🚀 Generate Tamil Speech", variant="primary")
|
|
@@ -878,7 +883,7 @@ with gr.Blocks(title="Maya: Immersive Manga AI", css=CUSTOM_CSS) as demo:
|
|
| 878 |
# Standard Logic (Text Only)
|
| 879 |
submit_std.click(
|
| 880 |
process_standard_pipeline,
|
| 881 |
-
inputs=[gr.State(None), gr.State(None), input_text, voice_style_std,
|
| 882 |
outputs=[out_text, out_tamil, out_audio]
|
| 883 |
)
|
| 884 |
|
|
|
|
| 660 |
)
|
| 661 |
|
| 662 |
input_text = gr.Textbox(lines=10, label="✍️ Paste or Type your story here", placeholder="Enter English text...", elem_id="tts_input_textarea", max_length=150000)
|
| 663 |
+
processing_mode_std = gr.Radio(
|
| 664 |
+
choices=["Cloud APIs (Fast & Lightweight ⚡)", "Local AI Models (Offline & Heavy 📴)", "MMS Tamil TTS (Local & Fast 🚀)"],
|
| 665 |
+
value="Cloud APIs (Fast & Lightweight ⚡)",
|
| 666 |
+
label="Processing Engine Mode"
|
| 667 |
+
)
|
| 668 |
voice_style_std = gr.Dropdown(choices=VOICE_STYLES, value=VOICE_STYLES[0], label="Voice Tone")
|
| 669 |
spicy_mode_std = gr.Checkbox(label="Spicy/18+ Mode (Intimate Translation)", value=False)
|
| 670 |
submit_std = gr.Button("🚀 Generate Tamil Speech", variant="primary")
|
|
|
|
| 883 |
# Standard Logic (Text Only)
|
| 884 |
submit_std.click(
|
| 885 |
process_standard_pipeline,
|
| 886 |
+
inputs=[gr.State(None), gr.State(None), input_text, voice_style_std, processing_mode_std, spicy_mode_std],
|
| 887 |
outputs=[out_text, out_tamil, out_audio]
|
| 888 |
)
|
| 889 |
|