Spaces:
Running
Running
Commit
·
3c1ef56
1
Parent(s):
8795c64
nltk download
Browse files
app.py
CHANGED
@@ -3,6 +3,9 @@ from transformers import AutoTokenizer
|
|
3 |
import torch
|
4 |
from tiny_finbert import TinyFinBERTRegressor, preprocess_texts
|
5 |
import os
|
|
|
|
|
|
|
6 |
|
7 |
MODEL_DIR = "./saved_model"
|
8 |
DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
3 |
import torch
|
4 |
from tiny_finbert import TinyFinBERTRegressor, preprocess_texts
|
5 |
import os
|
6 |
+
import nltk
|
7 |
+
|
8 |
+
nltk.download('stopwords')
|
9 |
|
10 |
MODEL_DIR = "./saved_model"
|
11 |
DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|