output_test / app.py
hmb's picture
hmb HF staff
Update app.py
7c5a08f verified
raw
history blame contribute delete
No virus
611 Bytes
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()