File size: 304 Bytes
f30c373
7c9216a
f30c373
1429210
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import gradio as gr
import os

gr.load("models/pyannote/speaker-diarization-3.1", hf_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()