Falln87 commited on
Commit
daf0a59
·
verified ·
1 Parent(s): c2674c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
2
 
3
  from transformers import pipeline
4
 
5
- pipe = pipeline("translation", model="t5-base")
6
 
7
  def translate(text):
8
  return pipe(text)[0]["translation_text"] # type: ignore
 
2
 
3
  from transformers import pipeline
4
 
5
+ pipe = pipeline("translation", model="google-t5/t5-base")
6
 
7
  def translate(text):
8
  return pipe(text)[0]["translation_text"] # type: ignore