ouilyh commited on
Commit
57eb4cd
·
verified ·
1 Parent(s): 18b2e21

Delete app.y

Browse files
Files changed (1) hide show
  1. app.y +0 -9
app.y DELETED
@@ -1,9 +0,0 @@
1
- import gradio as gr
2
- from transformers import pipeline
3
-
4
- translator = pipeline("translation", model="aikunu/mnt-fr-mos_v3")
5
-
6
- def translate(text):
7
- return translator(text)[0]['translation_text']
8
-
9
- gr.Interface(fn=translate, inputs="text", outputs="text").launch()