Spaces:
Sleeping
Sleeping
Commit
·
a5e428f
1
Parent(s):
4cddbaa
update scripts
Browse files
src/backend/model_operations.py
CHANGED
|
@@ -35,8 +35,8 @@ import spacy_transformers
|
|
| 35 |
import subprocess
|
| 36 |
|
| 37 |
# Run the command to download the spaCy model
|
| 38 |
-
|
| 39 |
-
subprocess.run(["python", "-m", "spacy", "download", "en_core_web_sm"], check=True)
|
| 40 |
# subprocess.run(["pip", "install", "spacy-transformers"], check=True)
|
| 41 |
# subprocess.run(["pip", "install", "curated-transformers"], check=True)
|
| 42 |
|
|
@@ -505,11 +505,10 @@ class EvaluationModel:
|
|
| 505 |
|
| 506 |
"""
|
| 507 |
|
| 508 |
-
def __init__(self
|
| 509 |
"""
|
| 510 |
Initializes the EvaluationModel.
|
| 511 |
"""
|
| 512 |
-
# self.model = load_evaluation_model(model_path)
|
| 513 |
self.scores = []
|
| 514 |
self.humanlike_score = None
|
| 515 |
|
|
|
|
| 35 |
import subprocess
|
| 36 |
|
| 37 |
# Run the command to download the spaCy model
|
| 38 |
+
subprocess.run(["python", "-m", "spacy", "download", "en_core_web_trf"], check=True)
|
| 39 |
+
# subprocess.run(["python", "-m", "spacy", "download", "en_core_web_sm"], check=True)
|
| 40 |
# subprocess.run(["pip", "install", "spacy-transformers"], check=True)
|
| 41 |
# subprocess.run(["pip", "install", "curated-transformers"], check=True)
|
| 42 |
|
|
|
|
| 505 |
|
| 506 |
"""
|
| 507 |
|
| 508 |
+
def __init__(self):
|
| 509 |
"""
|
| 510 |
Initializes the EvaluationModel.
|
| 511 |
"""
|
|
|
|
| 512 |
self.scores = []
|
| 513 |
self.humanlike_score = None
|
| 514 |
|