pyoyoso commited on
Commit
54a08f4
·
1 Parent(s): a38bbef

Delete app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -11
app.py DELETED
@@ -1,11 +0,0 @@
1
- import gradio as gr
2
- from transformers import pipeline
3
-
4
- def translate(name):
5
-
6
- trans = pipeline("translation", model="Helsinki-NLP/opus-mt-en-es")
7
- return trans(name)
8
-
9
- demo = gr.Interface(fn=translate, inputs="text", outputs="text")
10
-
11
- demo.launch()