Spaces:
Sleeping
Sleeping
Commit
•
b14b05d
1
Parent(s):
382f039
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
iface = gr.Interface(
|
2 |
+
fn=transcribe,
|
3 |
+
inputs=[
|
4 |
+
gr.inputs.Audio(source="microphone", type='filepath', optional=True),
|
5 |
+
gr.inputs.Audio(source="upload", type='filepath', optional=True),
|
6 |
+
],
|
7 |
+
outputs=[
|
8 |
+
gr.outputs.Textbox(label="Language"),
|
9 |
+
gr.Number(label="Probability"),
|
10 |
+
],
|
11 |
+
layout="horizontal",
|
12 |
+
theme="huggingface",
|
13 |
+
title="Whisper Language Identification",
|
14 |
+
description="Demo for Language Identification using OpenAI's [Whisper Large V2](https://huggingface.co/openai/whisper-large-v2).",
|
15 |
+
allow_flagging='never',
|
16 |
+
)
|
17 |
+
iface.launch(enable_queue=True)
|