serge-wilson's picture
Add application file
86aea6a
raw
history blame contribute delete
No virus
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()