Spaces:
Runtime error
Runtime error
AnishKumbhar
commited on
Commit
•
cb17d2c
1
Parent(s):
e81b8f7
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,8 @@ from transformers import AutoModelForImageClassification
|
|
7 |
app = FastAPI()
|
8 |
|
9 |
|
10 |
-
app.add_route("/", lambda: {"message": "Hello, world!"})
|
|
|
11 |
def preprocess_image(image: UploadFile):
|
12 |
# Resize the image to a fixed size
|
13 |
image = image.resize((224, 224))
|
|
|
7 |
app = FastAPI()
|
8 |
|
9 |
|
10 |
+
app.add_route("/", lambda scope: {"message": "Hello, world!"})
|
11 |
+
|
12 |
def preprocess_image(image: UploadFile):
|
13 |
# Resize the image to a fixed size
|
14 |
image = image.resize((224, 224))
|