Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,11 @@
|
|
1 |
import os
|
2 |
-
os.environ["TRANSFORMERS_CACHE"] = "/
|
3 |
|
4 |
-
from flask import Flask, request, jsonify
|
5 |
import nltk
|
6 |
-
nltk.data.path.append("/nltk_data")
|
|
|
|
|
|
|
7 |
|
8 |
from nltk.sentiment import SentimentIntensityAnalyzer
|
9 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
|
|
1 |
import os
|
2 |
+
os.environ["TRANSFORMERS_CACHE"] = "/tmp/transformers_cache"
|
3 |
|
|
|
4 |
import nltk
|
5 |
+
nltk.data.path.append("/tmp/nltk_data")
|
6 |
+
|
7 |
+
from flask import Flask, request, jsonify
|
8 |
+
|
9 |
|
10 |
from nltk.sentiment import SentimentIntensityAnalyzer
|
11 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|