Delik commited on
Commit
1429210
1 Parent(s): 7c9216a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -1
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()