Spaces:
Running
on
Zero
Running
on
Zero
File size: 495 Bytes
f30c373 7c9216a 18e78ec ba685bf a0de9ee 1429210 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
import gradio as gr
import os
import torch
import io
from pyannote.audio import Pipeline
from pyannote.audio import Audio
from pyannote.audio.pipelines.utils.hook import TimingHook
from pyannote.core import Segment
gr.load("models/pyannote/speaker-diarization-3.1", use_auth_token=os.environ['api']).launch()
def greet(name, intensity):
return "Hello, " + name + "!" * int(intensity)
demo = gr.Interface(
fn=greet,
inputs=["text", "slider"],
outputs=["text"],
)
demo.launch() |