SeyedAli commited on
Commit
a1b73ef
1 Parent(s): eaa52e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -6,8 +6,7 @@ from PIL import Image
6
 
7
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
8
 
9
- model_size = "small"
10
- model_name = f"persiannlp/mt5-{model_size}-parsinlu-translation_en_fa"
11
  translation_tokenizer = MT5Tokenizer.from_pretrained(model_name)
12
  translation_model = MT5ForConditionalGeneration.from_pretrained(model_name)
13
 
 
6
 
7
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
8
 
9
+ model_name = "SeyedAli/English-to-Persian-Translation-mT5-V1"
 
10
  translation_tokenizer = MT5Tokenizer.from_pretrained(model_name)
11
  translation_model = MT5ForConditionalGeneration.from_pretrained(model_name)
12