Montazerh82's picture
Create app.py
5cd2ffc verified
raw
history blame
221 Bytes
import gradio as gr
from transformers import pipeline
pipe = pipeline("text-classification", model="Mike0307/multilingual-e5-language-detection")
demo = gr.Interface(fn=pipe, inputs="text", outputs="text")
demo.launch()