Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,15 @@
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
|
4 |
-
gr.load("models/pyannote/speaker-diarization-3.1", hf_token=os.environ['api']).launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
|
4 |
+
gr.load("models/pyannote/speaker-diarization-3.1", hf_token=os.environ['api']).launch()
|
5 |
+
|
6 |
+
def greet(name, intensity):
|
7 |
+
return "Hello, " + name + "!" * int(intensity)
|
8 |
+
|
9 |
+
demo = gr.Interface(
|
10 |
+
fn=greet,
|
11 |
+
inputs=["text", "slider"],
|
12 |
+
outputs=["text"],
|
13 |
+
)
|
14 |
+
|
15 |
+
demo.launch()
|