Paweł Łaba
commited on
Commit
·
5d3a98e
1
Parent(s):
423991c
zmiany
Browse files
app.py
CHANGED
@@ -69,12 +69,12 @@ async def read_root():
|
|
69 |
|
70 |
@app.get("/status")
|
71 |
async def get_status():
|
72 |
-
"
|
73 |
-
return {
|
74 |
"status": "success",
|
75 |
-
"model_loaded":
|
76 |
-
"model_path":
|
77 |
-
}
|
78 |
|
79 |
|
80 |
@app.post("/move")
|
|
|
69 |
|
70 |
@app.get("/status")
|
71 |
async def get_status():
|
72 |
+
print("Endpoint /status został wywołany.")
|
73 |
+
return JSONResponse({
|
74 |
"status": "success",
|
75 |
+
"model_loaded": True, # lub odpowiedni warunek
|
76 |
+
"model_path": "model/model.keras", # Ścieżka do modelu
|
77 |
+
})
|
78 |
|
79 |
|
80 |
@app.post("/move")
|