janidioth commited on
Commit
2a44775
·
1 Parent(s): 0938890

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ from transformers import pipeline
8
  pipe = pipeline("translation", model="t5-base")
9
 
10
  def translate(text):
11
- return pip(text)[0]["translation_text"]
12
 
13
  with gr.Blocks() as demo:
14
  with gr.Row():
 
8
  pipe = pipeline("translation", model="t5-base")
9
 
10
  def translate(text):
11
+ return pipe(text)[0]["translation_text"]
12
 
13
  with gr.Blocks() as demo:
14
  with gr.Row():