Add setup model initialization
Browse files- __pycache__/inference_svm_model.cpython-310.pyc +0 -0
- __pycache__/mineru_single.cpython-310.pyc +0 -0
- __pycache__/worker.cpython-310.pyc +0 -0
- lauch.sh +7 -0
- mineru_single.py +1 -1
- svm_model.joblib +0 -3
__pycache__/inference_svm_model.cpython-310.pyc
ADDED
Binary file (947 Bytes). View file
|
|
__pycache__/mineru_single.cpython-310.pyc
CHANGED
Binary files a/__pycache__/mineru_single.cpython-310.pyc and b/__pycache__/mineru_single.cpython-310.pyc differ
|
|
__pycache__/worker.cpython-310.pyc
ADDED
Binary file (4.05 kB). View file
|
|
lauch.sh
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/usr/bin/env bash
|
2 |
+
echo "Space started to set up"
|
3 |
+
|
4 |
+
python download_models_hf.py
|
5 |
+
print(f'The configuration file has been configured successfully, the path is: {config_file}')
|
6 |
+
|
7 |
+
python app.py
|
mineru_single.py
CHANGED
@@ -21,7 +21,7 @@ class Processor:
|
|
21 |
endpoint_url=os.getenv("S3_ENDPOINT"),
|
22 |
)
|
23 |
|
24 |
-
model_path = os.getenv("SVM_MODEL_PATH", "./
|
25 |
self.svm_model = load_svm_model(model_path)
|
26 |
self.label_map = {0: "irrelevant", 1: "relevant"}
|
27 |
|
|
|
21 |
endpoint_url=os.getenv("S3_ENDPOINT"),
|
22 |
)
|
23 |
|
24 |
+
model_path = os.getenv("SVM_MODEL_PATH", "./model_classification/svm_model.joblib")
|
25 |
self.svm_model = load_svm_model(model_path)
|
26 |
self.label_map = {0: "irrelevant", 1: "relevant"}
|
27 |
|
svm_model.joblib
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:cfd07af67fb52073a477bcded6ed710f402f492d4fbc11945fbab1a68f7ceb62
|
3 |
-
size 219034075
|
|
|
|
|
|
|
|