ahed9x commited on
Commit
d9ec346
1 Parent(s): 135076e

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from transformers import pipeline
3
+
4
+ pipe = pipeline("text2text-generation", model="mohamedtolba/franco-arabics")
5
+
6
+ def translate(text):
7
+ return pipe(text)
8
+
9
+ demo = gr.Interface(fn=greet, inputs="text", outputs="text")
10
+ demo.launch()