A7med4 commited on
Commit
2a508e2
1 Parent(s): 3c59922

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -1,9 +1,11 @@
1
  import os
2
- os.environ["TRANSFORMERS_CACHE"] = "/app/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