Spaces:
Running
Running
aliasgerovs
commited on
Commit
•
edc836f
1
Parent(s):
dd9b08a
device has been updated
Browse files- nohup.out +18 -0
- predictors.py +2 -0
nohup.out
CHANGED
@@ -575,3 +575,21 @@ Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.9/dist-
|
|
575 |
You can now load the package via spacy.load('en_core_web_sm')
|
576 |
/usr/local/lib/python3.9/dist-packages/huggingface_hub/file_download.py:1132: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
|
577 |
warnings.warn(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
575 |
You can now load the package via spacy.load('en_core_web_sm')
|
576 |
/usr/local/lib/python3.9/dist-packages/huggingface_hub/file_download.py:1132: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
|
577 |
warnings.warn(
|
578 |
+
/usr/local/lib/python3.9/dist-packages/huggingface_hub/file_download.py:1132: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
|
579 |
+
warnings.warn(
|
580 |
+
/usr/local/lib/python3.9/dist-packages/huggingface_hub/file_download.py:1132: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
|
581 |
+
warnings.warn(
|
582 |
+
2024-05-24 14:36:36.892111: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
|
583 |
+
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
|
584 |
+
[nltk_data] Downloading package punkt to /root/nltk_data...
|
585 |
+
[nltk_data] Package punkt is already up-to-date!
|
586 |
+
[nltk_data] Downloading package stopwords to /root/nltk_data...
|
587 |
+
[nltk_data] Package stopwords is already up-to-date!
|
588 |
+
/usr/local/lib/python3.9/dist-packages/huggingface_hub/file_download.py:1132: FutureWarning: `resume_download` is deprecated and will be removed in version 1.0.0. Downloads always resume when possible. If you want to force a new download, use `force_download=True`.
|
589 |
+
warnings.warn(
|
590 |
+
Traceback (most recent call last):
|
591 |
+
File "/home/aliasgarov/copyright_checker/app.py", line 4, in <module>
|
592 |
+
from predictors import predict_bc_scores, predict_mc_scores
|
593 |
+
File "/home/aliasgarov/copyright_checker/predictors.py", line 39, in <module>
|
594 |
+
).to(device)
|
595 |
+
NameError: name 'device' is not defined
|
predictors.py
CHANGED
@@ -24,6 +24,8 @@ with open("config.yaml", "r") as file:
|
|
24 |
nltk.download("punkt")
|
25 |
nltk.download("stopwords")
|
26 |
device_needed = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
|
|
27 |
text_bc_model_path = params["TEXT_BC_MODEL_PATH"]
|
28 |
text_mc_model_path = params["TEXT_MC_MODEL_PATH"]
|
29 |
text_quillbot_model_path = params["TEXT_QUILLBOT_MODEL_PATH"]
|
|
|
24 |
nltk.download("punkt")
|
25 |
nltk.download("stopwords")
|
26 |
device_needed = "cuda" if torch.cuda.is_available() else "cpu"
|
27 |
+
device = "cuda" if torch.cuda.is_available() else "cpu"
|
28 |
+
|
29 |
text_bc_model_path = params["TEXT_BC_MODEL_PATH"]
|
30 |
text_mc_model_path = params["TEXT_MC_MODEL_PATH"]
|
31 |
text_quillbot_model_path = params["TEXT_QUILLBOT_MODEL_PATH"]
|