Paweł Łaba commited on
Commit
5d3a98e
·
1 Parent(s): 423991c
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -69,12 +69,12 @@ async def read_root():
69
 
70
  @app.get("/status")
71
  async def get_status():
72
- """Sprawdza status modelu"""
73
- return {
74
  "status": "success",
75
- "model_loaded": ai.model is not None,
76
- "model_path": ai.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")