import gradio as gr from transcription import process_audio custom_css = """ .gradio-container { background-color: #f5f5f5; } .gr-button-primary { background-color: #f55036 !important; border-color: #f55036 !important; } .gr-button-secondary { color: #f55036 !important; border-color: #f55036 !important; } #groq-badge { position: fixed; bottom: 20px; right: 90px; z-index: 1000; } """ with gr.Blocks(theme=gr.themes.Default(), css=custom_css) as app: gr.Markdown("# 🎙️ Voice-Powered AI Assistant.") api_key_input = gr.Textbox(type="password", label="Enter your Groq API Key") with gr.Row(): audio_inputs = gr.Audio(label="Speak here", type="numpy") with gr.Row(): transcription_output = gr.Textbox(label="Transcription") response_output = gr.Textbox(label="AI Assistant Response") submit_button = gr.Button("Process", variant="primary") gr.HTML( """