|
import gradio as gr |
|
from dotenv import load_dotenv |
|
|
|
from tabs.audio_cutter_tab import create_audio_cutter_tab |
|
from tabs.audio_effects_tab import create_audio_effects_tab |
|
from tabs.audio_merger_tab import create_audio_merger_tab |
|
from tabs.audio_transcription_tab import create_audio_transcription_tab |
|
|
|
|
|
def create_app(): |
|
"""Create the main Gradio application with multiple tabs""" |
|
|
|
with gr.Blocks(title="Audio Toolkit", theme=gr.themes.Soft()) as app: |
|
gr.Markdown("# π΅ Audio Toolkit") |
|
gr.Markdown("A comprehensive audio processing toolkit with multiple tools.") |
|
|
|
with gr.Tabs(): |
|
|
|
with gr.TabItem("βοΈ Audio Cutter"): |
|
create_audio_cutter_tab() |
|
|
|
|
|
with gr.TabItem("π Audio Merger"): |
|
create_audio_merger_tab() |
|
|
|
with gr.TabItem("ποΈ Audio Effects"): |
|
create_audio_effects_tab() |
|
|
|
with gr.TabItem("π Audio Transcription"): |
|
create_audio_transcription_tab() |
|
return app |
|
|
|
|
|
if __name__ == "__main__": |
|
load_dotenv() |
|
gradio_app = create_app() |
|
gradio_app.launch(mcp_server=True) |