import gradio as gr from functions import transcribe_eaf with gr.Blocks(title="Rohingya EAF Transcriber") as page: gr.Markdown("## Rohingya EAF Transcriber") with gr.Row(): input_eaf_file = gr.File( label="Upload EAF File", file_count="single", file_types=['.eaf'], type="filepath" ) input_audio_file = gr.File( label="Upload Audio File", file_count="single", file_types=['audio'], type="filepath" ) with gr.Row(): tier = gr.Textbox( label="Enter the Tier Type" ) with gr.Row(): submit_button = gr.Button( "Transcribe" ) with gr.Row(): output = gr.File( label="Transcribed EAF File" ) submit_button.click( fn=transcribe_eaf, inputs=[input_eaf_file, input_audio_file, tier], outputs=output ) page.launch()