eziokittu commited on
Commit
a507dec
·
verified ·
1 Parent(s): d636b75

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -0
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: