Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -37,10 +37,10 @@ def transcribe(audio):
|
|
37 |
text = asr(audio)["text"]
|
38 |
return text
|
39 |
|
40 |
-
gr.Interface(
|
41 |
-
fn=transcribe,
|
42 |
-
inputs=gr.inputs.Audio(source="microphone", type="filepath"),
|
43 |
-
outputs="text").launch()
|
44 |
|
45 |
|
46 |
classifier = pipeline("text-classification")
|
@@ -58,7 +58,8 @@ def text_to_sentiment(text):
|
|
58 |
demo = gr.Blocks()
|
59 |
|
60 |
with demo:
|
61 |
-
audio_file = gr.Audio(type="filepath")
|
|
|
62 |
text = gr.Textbox()
|
63 |
label = gr.Label()
|
64 |
|
|
|
37 |
text = asr(audio)["text"]
|
38 |
return text
|
39 |
|
40 |
+
#gr.Interface(
|
41 |
+
# fn=transcribe,
|
42 |
+
# inputs=gr.inputs.Audio(source="microphone", type="filepath"),
|
43 |
+
# outputs="text").launch()
|
44 |
|
45 |
|
46 |
classifier = pipeline("text-classification")
|
|
|
58 |
demo = gr.Blocks()
|
59 |
|
60 |
with demo:
|
61 |
+
#audio_file = gr.Audio(type="filepath")
|
62 |
+
audio_file = gr.inputs.Audio(source="microphone", type="filepath")
|
63 |
text = gr.Textbox()
|
64 |
label = gr.Label()
|
65 |
|