Spaces:
Sleeping
Sleeping
Commit
·
38d62de
1
Parent(s):
3e22122
Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ def transcribe(Microphone, File_Upload):
|
|
30 |
file = File_Upload
|
31 |
|
32 |
result = model.transcribe(file, task="translate")
|
33 |
-
return sentiment_analysis(result['text'][0]['label'])
|
34 |
|
35 |
iface = gr.Interface(
|
36 |
fn=transcribe,
|
@@ -39,8 +39,7 @@ iface = gr.Interface(
|
|
39 |
gr.inputs.Audio(source="upload", type='filepath', optional=True),
|
40 |
],
|
41 |
outputs=[
|
42 |
-
gr.outputs.Textbox(label="Language")
|
43 |
-
gr.Number(label="Probability"),
|
44 |
],
|
45 |
layout="horizontal",
|
46 |
theme="huggingface",
|
|
|
30 |
file = File_Upload
|
31 |
|
32 |
result = model.transcribe(file, task="translate")
|
33 |
+
return sentiment_analysis(result['text'][0]['label'])
|
34 |
|
35 |
iface = gr.Interface(
|
36 |
fn=transcribe,
|
|
|
39 |
gr.inputs.Audio(source="upload", type='filepath', optional=True),
|
40 |
],
|
41 |
outputs=[
|
42 |
+
gr.outputs.Textbox(label="Language")
|
|
|
43 |
],
|
44 |
layout="horizontal",
|
45 |
theme="huggingface",
|