serge-wilson's picture
Add application file
86aea6a
raw
history blame
375 Bytes
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()