fix readme
Browse files
README.md
CHANGED
|
@@ -7,12 +7,12 @@ tags:
|
|
| 7 |
you can the model via the command
|
| 8 |
```python
|
| 9 |
from transformers import AutoModelForImageClassification
|
| 10 |
-
model = AutoModelForImageClassification.from_pretrained("not-lain/
|
| 11 |
```
|
| 12 |
or you can use the pipeline
|
| 13 |
```python
|
| 14 |
from transformers import pipeline
|
| 15 |
-
pipe = pipeline(model="not-lain/
|
| 16 |
pipe(
|
| 17 |
"url",
|
| 18 |
download=True, # will call the download_img method
|
|
|
|
| 7 |
you can the model via the command
|
| 8 |
```python
|
| 9 |
from transformers import AutoModelForImageClassification
|
| 10 |
+
model = AutoModelForImageClassification.from_pretrained("not-lain/MyRepo1.0", trust_remote_code=True)
|
| 11 |
```
|
| 12 |
or you can use the pipeline
|
| 13 |
```python
|
| 14 |
from transformers import pipeline
|
| 15 |
+
pipe = pipeline(model="not-lain/MyRepo1.0", trust_remote_code=True)
|
| 16 |
pipe(
|
| 17 |
"url",
|
| 18 |
download=True, # will call the download_img method
|