Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
-
|
|
|
|
| 2 |
|
| 3 |
def save_model(model, tokenizer, out_dir: str):
|
| 4 |
"""Saves model in Hugging Face-compatible format"""
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
from transformers import BertConfig, AutoModelForSequenceClassification, BertTokenizerFast
|
| 3 |
|
| 4 |
def save_model(model, tokenizer, out_dir: str):
|
| 5 |
"""Saves model in Hugging Face-compatible format"""
|