RUVNE commited on
Commit ·
31dca8d
1
Parent(s): a747b47
fix: init route
Browse files
app.py
CHANGED
|
@@ -73,9 +73,10 @@ def hash_image(image: Image.Image) -> str:
|
|
| 73 |
image_bytes = image.tobytes()
|
| 74 |
return hashlib.md5(image_bytes).hexdigest()
|
| 75 |
|
|
|
|
| 76 |
@app.get("/")
|
| 77 |
-
|
| 78 |
-
return {"
|
| 79 |
|
| 80 |
|
| 81 |
# === Endpoint: Prediksi Gambar ===
|
|
|
|
| 73 |
image_bytes = image.tobytes()
|
| 74 |
return hashlib.md5(image_bytes).hexdigest()
|
| 75 |
|
| 76 |
+
|
| 77 |
@app.get("/")
|
| 78 |
+
def root():
|
| 79 |
+
return {"ok": True}
|
| 80 |
|
| 81 |
|
| 82 |
# === Endpoint: Prediksi Gambar ===
|