Update main.py
Browse files
main.py
CHANGED
|
@@ -13,7 +13,7 @@ from collections import OrderedDict
|
|
| 13 |
app = Flask(__name__)
|
| 14 |
|
| 15 |
# create a python dictionary for your models d = {<key>: <value>, <key>: <value>, ..., <key>: <value>}
|
| 16 |
-
model_url = "nlptown/bert-base-multilingual-uncased-sentiment"
|
| 17 |
model_path = cached_download(model_url)
|
| 18 |
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
| 19 |
|
|
|
|
| 13 |
app = Flask(__name__)
|
| 14 |
|
| 15 |
# create a python dictionary for your models d = {<key>: <value>, <key>: <value>, ..., <key>: <value>}
|
| 16 |
+
model_url = "https://huggingface.co/nlptown/bert-base-multilingual-uncased-sentiment"
|
| 17 |
model_path = cached_download(model_url)
|
| 18 |
tokenizer = AutoTokenizer.from_pretrained(model_path)
|
| 19 |
|