forked from maepopi/audio-dataset-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webui_main.py
36 lines (20 loc) · 1.03 KB
/
webui_main.py
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
import gradio as gr
import sys
import os
current_dir = os.path.dirname(os.path.abspath(__file__))
src_folder = os.path.join(current_dir, 'src')
sys.path.append(src_folder)
from readme_ui import create_readme_interface
from analyze_ui import create_analyze_audio_interface
from split_ui import create_split_audio_interface
from transcribe_ui import create_transcribe_audio_interface
from fix_transcription_ui import create_fix_transcription_interface
readme_ui = create_readme_interface()
analyze_audio_ui = create_analyze_audio_interface()
split_audio_ui = create_split_audio_interface()
transcribe_audio_ui = create_transcribe_audio_interface()
fix_transcription_ui = create_fix_transcription_interface()
interfaces = [readme_ui, analyze_audio_ui, split_audio_ui, transcribe_audio_ui, fix_transcription_ui]
tab_names = ["Readme", "Analyze audio", "Split audio", "Transcribe audio", "Fix transcription"]
tabbed_interface = gr.TabbedInterface(interface_list=interfaces, tab_names=tab_names)
tabbed_interface.launch()