hmb HF Staff commited on
Commit
5b6fd34
·
verified ·
1 Parent(s): f152ab7

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +26 -0
app.py ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+
4
+ def transcribe():
5
+ return "text"
6
+
7
+ def generate_html_css():
8
+ return "<div>html text</div>"
9
+
10
+ def process_audio():
11
+ transcription = transcribe()
12
+ html_css = generate_html_css()
13
+ return transcription, html_css
14
+
15
+ demo = gr.Interface(
16
+ fn=process_audio,
17
+ inputs=[],
18
+ outputs=[
19
+ gr.Textbox(label="Transcription"),
20
+ gr.Textbox(label="Generated HTML/CSS")
21
+ ],
22
+ title="Whisper Large V3 + Falcon LLM: Transcribe and Visualize",
23
+ allow_flagging="never",
24
+ )
25
+
26
+ demo.queue().launch()