Spaces:
Sleeping
Sleeping
Mathieu Lai-King
commited on
Commit
•
9c03dd5
1
Parent(s):
a3f48a5
fixed error in readme, added defused xml as dependency
Browse files- README.md +2 -2
- requirements.txt +1 -0
README.md
CHANGED
@@ -17,7 +17,7 @@ models: ['aakorolyova/primary_and_secondary_outcome_extraction','Mathking/all-mp
|
|
17 |
|
18 |
1. Download dependencies : `pip install -r requirements.txt`
|
19 |
|
20 |
-
2. Define pretrained models path in config file : you must redefine `config.json` so that it points to the models if you do not have them on disk.
|
21 |
```json
|
22 |
{
|
23 |
"ner_path": "aakorolyova/primary_and_secondary_outcome_extraction",
|
@@ -32,4 +32,4 @@ models: ['aakorolyova/primary_and_secondary_outcome_extraction','Mathking/all-mp
|
|
32 |
}
|
33 |
```
|
34 |
|
35 |
-
1. Run `python3 -m app.py`
|
|
|
17 |
|
18 |
1. Download dependencies : `pip install -r requirements.txt`
|
19 |
|
20 |
+
2. Define pretrained models path in config file : you must redefine `config.json` so that it points to the models if you do not have them on disk. You also can redefine ner_labe2id depending on the model you use
|
21 |
```json
|
22 |
{
|
23 |
"ner_path": "aakorolyova/primary_and_secondary_outcome_extraction",
|
|
|
32 |
}
|
33 |
```
|
34 |
|
35 |
+
1. Run `python3 -m app.py`
|
requirements.txt
CHANGED
@@ -2,5 +2,6 @@ torch==2.4.0 --index-url https://download.pytorch.org/whl/cpu
|
|
2 |
pandas==2.2.2
|
3 |
gradio==4.44.0
|
4 |
plotly==5.24.0
|
|
|
5 |
transformers==4.44.2
|
6 |
sentence-transformers==3.0.1
|
|
|
2 |
pandas==2.2.2
|
3 |
gradio==4.44.0
|
4 |
plotly==5.24.0
|
5 |
+
defusedxml==0.7.1
|
6 |
transformers==4.44.2
|
7 |
sentence-transformers==3.0.1
|