Update Readme
Browse files
README.md
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
---
|
2 |
-
tags:
|
3 |
language: unk
|
4 |
widget:
|
5 |
-
- text: "
|
6 |
datasets:
|
7 |
- Mim/autotrain-data-biobert-procell
|
8 |
co2_eq_emissions: 0.5988414315305852
|
9 |
---
|
10 |
|
11 |
-
# Model Trained Using
|
12 |
|
13 |
- Problem type: Binary Classification
|
14 |
- Model ID: 896229149
|
@@ -28,7 +28,7 @@ co2_eq_emissions: 0.5988414315305852
|
|
28 |
You can use cURL to access this model:
|
29 |
|
30 |
```
|
31 |
-
$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "
|
32 |
```
|
33 |
|
34 |
Or Python API:
|
@@ -40,7 +40,7 @@ model = AutoModelForSequenceClassification.from_pretrained("Mim/autotrain-biober
|
|
40 |
|
41 |
tokenizer = AutoTokenizer.from_pretrained("Mim/autotrain-biobert-procell-896229149", use_auth_token=True)
|
42 |
|
43 |
-
inputs = tokenizer("
|
44 |
|
45 |
outputs = model(**inputs)
|
46 |
```
|
|
|
1 |
---
|
2 |
+
tags: biobert
|
3 |
language: unk
|
4 |
widget:
|
5 |
+
- text: "Cell lines expressing proteins 🤗"
|
6 |
datasets:
|
7 |
- Mim/autotrain-data-biobert-procell
|
8 |
co2_eq_emissions: 0.5988414315305852
|
9 |
---
|
10 |
|
11 |
+
# Model Trained Using biobert
|
12 |
|
13 |
- Problem type: Binary Classification
|
14 |
- Model ID: 896229149
|
|
|
28 |
You can use cURL to access this model:
|
29 |
|
30 |
```
|
31 |
+
$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "Cell lines expressing proteins"}' https://api-inference.huggingface.co/models/Mim/autotrain-biobert-procell-896229149
|
32 |
```
|
33 |
|
34 |
Or Python API:
|
|
|
40 |
|
41 |
tokenizer = AutoTokenizer.from_pretrained("Mim/autotrain-biobert-procell-896229149", use_auth_token=True)
|
42 |
|
43 |
+
inputs = tokenizer("Cell lines expressing proteins", return_tensors="pt")
|
44 |
|
45 |
outputs = model(**inputs)
|
46 |
```
|