Spaces:
Runtime error
Runtime error
Download app.py from hmb/output_test: direct link, hf CLI and curl.
- Browser
- Download file 611 Bytes
-
https://huggingface.co/spaces/hmb/output_test/resolve/main/app.py
- Command line
-
hf download hf://spaces/hmb/output_test/app.py
-
curl -L -o app.py https://huggingface.co/spaces/hmb/output_test/resolve/main/app.py
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() | |