Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import gradio as gr
|
|
2 |
from utilities.setup import get_files
|
3 |
#import spaces
|
4 |
from services.diarization import Diarizer
|
|
|
5 |
|
6 |
#@spaces.GPU
|
7 |
def process_meeting(audio_input, num_speakers, speaker_names):
|
@@ -15,7 +16,7 @@ def process_meeting(audio_input, num_speakers, speaker_names):
|
|
15 |
# first, pass it through a diarization stage.
|
16 |
diarization_result, label_file = diarizer.run(audio_input, num_speakers)
|
17 |
# Next, pass it through a transctiption stage
|
18 |
-
|
19 |
# After, match the diarization with the transcription
|
20 |
|
21 |
# Finally, Clean up the docs.
|
@@ -78,4 +79,5 @@ if __name__ == "__main__":
|
|
78 |
conf = get_files.json_cfg()
|
79 |
# initialize diarizer
|
80 |
diarizer = Diarizer(conf)
|
|
|
81 |
main(conf)
|
|
|
2 |
from utilities.setup import get_files
|
3 |
#import spaces
|
4 |
from services.diarization import Diarizer
|
5 |
+
from services.asr import Transcriber
|
6 |
|
7 |
#@spaces.GPU
|
8 |
def process_meeting(audio_input, num_speakers, speaker_names):
|
|
|
16 |
# first, pass it through a diarization stage.
|
17 |
diarization_result, label_file = diarizer.run(audio_input, num_speakers)
|
18 |
# Next, pass it through a transctiption stage
|
19 |
+
transcriber.run(audio_input)
|
20 |
# After, match the diarization with the transcription
|
21 |
|
22 |
# Finally, Clean up the docs.
|
|
|
79 |
conf = get_files.json_cfg()
|
80 |
# initialize diarizer
|
81 |
diarizer = Diarizer(conf)
|
82 |
+
transcriber = Transcriber(conf)
|
83 |
main(conf)
|