Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ from io import BytesIO
|
|
| 10 |
app = FastAPI()
|
| 11 |
|
| 12 |
# load model once
|
| 13 |
-
model_name = "
|
| 14 |
model = AutoModelForImageClassification.from_pretrained(model_name)
|
| 15 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 16 |
transform = T.Compose([
|
|
|
|
| 10 |
app = FastAPI()
|
| 11 |
|
| 12 |
# load model once
|
| 13 |
+
model_name = "Falconsai/nsfw_image_detection"
|
| 14 |
model = AutoModelForImageClassification.from_pretrained(model_name)
|
| 15 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 16 |
transform = T.Compose([
|