Montazerh82 commited on
Commit
5cd2ffc
·
verified ·
1 Parent(s): 638cab0

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from transformers import pipeline
3
+
4
+ pipe = pipeline("text-classification", model="Mike0307/multilingual-e5-language-detection")
5
+
6
+ demo = gr.Interface(fn=pipe, inputs="text", outputs="text")
7
+ demo.launch()