Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -39,27 +39,10 @@ def inference_text(audio):
|
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
-
|
| 43 |
-
with block:
|
| 44 |
-
with gr.Group():
|
| 45 |
-
with gr.Box():
|
| 46 |
-
with gr.Row().style(mobile_collapse=False, equal_height=True):
|
| 47 |
-
audio = gr.Audio(
|
| 48 |
-
label="Input Audio",
|
| 49 |
-
show_label=False,
|
| 50 |
-
source="microphone",
|
| 51 |
-
type="filepath"
|
| 52 |
-
)
|
| 53 |
|
| 54 |
-
btn = gr.Button("Transcribe")
|
| 55 |
-
text = gr.Textbox(show_label=False, elem_id="result-textarea")
|
| 56 |
-
|
| 57 |
|
| 58 |
|
| 59 |
-
|
| 60 |
-
btn.click(inference_text, inputs=[audio], outputs=[text])
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
block.launch()
|
| 64 |
|
| 65 |
|
|
|
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
+
app=gr.Interface(title="Speech Sentiment Classification",fn=inference_text,inputs=[audio],outputs=gr.DataFrame())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
|
|
|
|
|
|
|
|
|
|
| 44 |
|
| 45 |
|
| 46 |
+
app.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
|
| 48 |
|