Spaces:
Sleeping
Sleeping
pakmandesign
commited on
Commit
•
cc2d606
1
Parent(s):
541f702
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,8 @@
|
|
|
|
|
|
1 |
from transformers import pipeline
|
2 |
|
3 |
-
# build the
|
4 |
pipe = pipeline("translation", model="t5-base")
|
5 |
|
6 |
def translate(text):
|
|
|
1 |
+
|
2 |
+
import gradio as gr
|
3 |
from transformers import pipeline
|
4 |
|
5 |
+
# build the translation pipeline with the pre-trained model
|
6 |
pipe = pipeline("translation", model="t5-base")
|
7 |
|
8 |
def translate(text):
|