Update app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,11 @@ import string
|
|
6 |
import time
|
7 |
from queue import Queue
|
8 |
from threading import Thread
|
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
|
11 |
|
|
|
6 |
import time
|
7 |
from queue import Queue
|
8 |
from threading import Thread
|
9 |
+
from transformers import MBartForConditionalGeneration, MBart50TokenizerFast
|
10 |
+
|
11 |
+
|
12 |
+
model = MBartForConditionalGeneration.from_pretrained("facebook/mbart-large-50-many-to-one-mmt")
|
13 |
+
tokenizer = MBart50TokenizerFast
|
14 |
|
15 |
|
16 |
|