Spaces:
Sleeping
Sleeping
on1onmangoes
commited on
Commit
•
be4e1da
1
Parent(s):
d85b396
Update app.py
Browse files
app.py
CHANGED
@@ -50,8 +50,12 @@ import gradio as gr
|
|
50 |
def greet(name):
|
51 |
return "Hello " + name + "!!"
|
52 |
|
53 |
-
iface = gr.Interface(fn=transcribe, inputs=gr.inputs.Audio(source="upload", optional=True, label="Audio file", type="filepath"), outputs="text")
|
54 |
-
iface.launch()
|
55 |
-
|
56 |
-
|
|
|
|
|
|
|
|
|
57 |
|
|
|
50 |
def greet(name):
|
51 |
return "Hello " + name + "!!"
|
52 |
|
53 |
+
# iface = gr.Interface(fn=transcribe, inputs=gr.inputs.Audio(source="upload", optional=True, label="Audio file", type="filepath"), outputs="text")
|
54 |
+
# iface.launch()
|
55 |
+
with gr.Blocks(theme="rawrsor1/Everforest") as demo:
|
56 |
+
audio_input = gr.Audio(type="filepath")
|
57 |
+
text_output = gr.Textbox( label="speaker diarization")
|
58 |
+
speaker_diarization_button = gr.Button("Submit")
|
59 |
+
speaker_diarization_button.click(fn=transcribe, inputs=[audio_input], output[text_output])
|
60 |
+
demo.launch(debug=True)
|
61 |
|