Spaces:
Build error
Build error
Commit
·
08fc7eb
1
Parent(s):
d0ebb15
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ translation_session = ort.InferenceSession(translation_model_file)
|
|
13 |
|
14 |
# Load tokenizer for translation model and for context model
|
15 |
tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-en-fr")
|
16 |
-
context_tokenizer = AutoTokenizer.from_pretrained("facebook/bart-
|
17 |
|
18 |
labels = [
|
19 |
"general", "pharma", "legal", "technical", "UI", "user interface", "medicine",
|
|
|
13 |
|
14 |
# Load tokenizer for translation model and for context model
|
15 |
tokenizer = AutoTokenizer.from_pretrained("Helsinki-NLP/opus-mt-en-fr")
|
16 |
+
context_tokenizer = AutoTokenizer.from_pretrained("facebook/bart-large-mnli")
|
17 |
|
18 |
labels = [
|
19 |
"general", "pharma", "legal", "technical", "UI", "user interface", "medicine",
|