Upload mirth_chonky_mmbert_small_multilingual_1_1.py with huggingface_hub
Browse files
mirth_chonky_mmbert_small_multilingual_1_1.py
CHANGED
|
@@ -29,7 +29,8 @@ except Exception as e:
|
|
| 29 |
|
| 30 |
with open('mirth_chonky_mmbert_small_multilingual_1_1.txt', 'a', encoding='utf-8') as f:
|
| 31 |
import traceback
|
| 32 |
-
f.write('
|
|
|
|
| 33 |
# Load model directly
|
| 34 |
from transformers import AutoTokenizer, AutoModelForTokenClassification
|
| 35 |
|
|
@@ -37,7 +38,7 @@ tokenizer = AutoTokenizer.from_pretrained("mirth/chonky_mmbert_small_multilingua
|
|
| 37 |
model = AutoModelForTokenClassification.from_pretrained("mirth/chonky_mmbert_small_multilingual_1")
|
| 38 |
```
|
| 39 |
ERROR:
|
| 40 |
-
')
|
| 41 |
traceback.print_exc(file=f)
|
| 42 |
|
| 43 |
finally:
|
|
|
|
| 29 |
|
| 30 |
with open('mirth_chonky_mmbert_small_multilingual_1_1.txt', 'a', encoding='utf-8') as f:
|
| 31 |
import traceback
|
| 32 |
+
f.write('''
|
| 33 |
+
```CODE:
|
| 34 |
# Load model directly
|
| 35 |
from transformers import AutoTokenizer, AutoModelForTokenClassification
|
| 36 |
|
|
|
|
| 38 |
model = AutoModelForTokenClassification.from_pretrained("mirth/chonky_mmbert_small_multilingual_1")
|
| 39 |
```
|
| 40 |
ERROR:
|
| 41 |
+
''')
|
| 42 |
traceback.print_exc(file=f)
|
| 43 |
|
| 44 |
finally:
|