Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
from flask import Flask, jsonify, request, render_template
|
2 |
-
from adapters import AutoAdapterModel,
|
|
|
3 |
import numpy
|
4 |
|
5 |
tokenizer = AutoTokenizer.from_pretrained("UBC-NLP/MARBERT")
|
|
|
1 |
from flask import Flask, jsonify, request, render_template
|
2 |
+
from adapters import AutoAdapterModel,
|
3 |
+
from transformers import AutoTokenizer, TextClassificationPipeline
|
4 |
import numpy
|
5 |
|
6 |
tokenizer = AutoTokenizer.from_pretrained("UBC-NLP/MARBERT")
|