File size: 611 Bytes
5b6fd34
 
 
 
 
 
 
7c5a08f
5b6fd34
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import gradio as gr


def transcribe():
    return "text"

def generate_html_css():
    return "<p style=\"font-size: 16px;\">Hello world.</p>\n\n<style>\nbody {\n  font-size: 16px;\n}</style>"

def process_audio():
    transcription = transcribe()
    html_css = generate_html_css()
    return transcription, html_css

demo = gr.Interface(
    fn=process_audio,
    inputs=[],
    outputs=[
        gr.Textbox(label="Transcription"),
        gr.Textbox(label="Generated HTML/CSS")
    ],
    title="Whisper Large V3 + Falcon LLM: Transcribe and Visualize",
    allow_flagging="never",
)

demo.queue().launch()