File size: 1,042 Bytes
4dc8f4b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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()