File size: 375 Bytes
1dca987 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import gradio as gr
from gradio.components import Text
from pipeline import transcription_classification_pipeline
demo = gr.Interface(
title="Sentimment Analysis - FRENCH",
fn=transcription_classification_pipeline,
inputs = gr.Audio(source="microphone", type="filepath"),
outputs = [Text(label="Transcription"), Text(label="Prediction")]
)
demo.launch()
|