Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
from utilities.setup import get_files
|
3 |
# import spaces
|
4 |
-
|
5 |
|
6 |
#@spaces.GPU
|
7 |
def process_meeting(audio_input, num_speakers, speaker_names):
|
@@ -10,6 +10,16 @@ def process_meeting(audio_input, num_speakers, speaker_names):
|
|
10 |
num_speakers: number --> int
|
11 |
speaker_names: dataset --> np.array
|
12 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
if 1 < num_speakers < 6:
|
14 |
answer = "Completed Loading Data", "fl"
|
15 |
else:
|
|
|
1 |
import gradio as gr
|
2 |
from utilities.setup import get_files
|
3 |
# import spaces
|
4 |
+
#from services import Diarizer
|
5 |
|
6 |
#@spaces.GPU
|
7 |
def process_meeting(audio_input, num_speakers, speaker_names):
|
|
|
10 |
num_speakers: number --> int
|
11 |
speaker_names: dataset --> np.array
|
12 |
"""
|
13 |
+
|
14 |
+
# first, pass it through a diarization stage.
|
15 |
+
|
16 |
+
# Next, pass it through a transctiption stage
|
17 |
+
|
18 |
+
# After, match the diarization with the transcription
|
19 |
+
|
20 |
+
# Finally, Clean up the docs.
|
21 |
+
|
22 |
+
|
23 |
if 1 < num_speakers < 6:
|
24 |
answer = "Completed Loading Data", "fl"
|
25 |
else:
|