Update main.py
Browse files
main.py
CHANGED
@@ -25,6 +25,10 @@ def preprocess_image(image: Image.Image):
|
|
25 |
def home():
|
26 |
return {"message": "FastAPI server is running on Hugging Face Spaces!"}
|
27 |
|
|
|
|
|
|
|
|
|
28 |
@app.post("/api/predict1")
|
29 |
async def predict(file: UploadFile = File(...)):
|
30 |
try:
|
|
|
25 |
def home():
|
26 |
return {"message": "FastAPI server is running on Hugging Face Spaces!"}
|
27 |
|
28 |
+
@app.get("/api/working2")
|
29 |
+
def greet_somename():
|
30 |
+
return {"message": "Hello Bodhisatta, how are you"}
|
31 |
+
|
32 |
@app.post("/api/predict1")
|
33 |
async def predict(file: UploadFile = File(...)):
|
34 |
try:
|