Spaces:
Running
Running
File size: 620 Bytes
8554b58 ef3ac9c ca9de8c ef3ac9c ca9de8c ef3ac9c 8554b58 ef3ac9c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
import gradio as gr
from deepgram_transcribe import process
def process_submit(title, file, tag, progress=gr.Progress()):
progress(0, desc="Starting...")
zip_folder_path = process(file, tag, progress)
return zip_folder_path
textbox = gr.Textbox(
label="TAGS",
info="Examples: DG, vogue, etc.",
lines=1,
value="DG",
)
file_output = gr.File()
title = gr.Markdown(
"""
# Playground
Upload your audio file here.
""")
gr.Interface(fn=process_submit, inputs=[title, file_output, textbox], outputs="file", allow_flagging="never").launch() |