Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,12 @@ from pyannote.audio import Audio
|
|
7 |
from pyannote.audio.pipelines.utils.hook import TimingHook
|
8 |
from pyannote.core import Segment
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
def greet(name, intensity):
|
13 |
return "Hello, " + name + "!" * int(intensity)
|
|
|
7 |
from pyannote.audio.pipelines.utils.hook import TimingHook
|
8 |
from pyannote.core import Segment
|
9 |
|
10 |
+
pipeline = Pipeline.from_pretrained(
|
11 |
+
"pyannote/speaker-diarization-3.1",
|
12 |
+
use_auth_token=os.environ['api'])
|
13 |
+
|
14 |
+
|
15 |
+
gr.launch()
|
16 |
|
17 |
def greet(name, intensity):
|
18 |
return "Hello, " + name + "!" * int(intensity)
|