Diamanta commited on
Commit
ae0f1b9
·
verified ·
1 Parent(s): 72505c7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -44,6 +44,10 @@ def load_model():
44
  raise RuntimeError(f"Model not found at path: {model_path}")
45
  llm = Llama(model_path=model_path)
46
 
 
 
 
 
47
  @app.get("/health")
48
  async def health_check():
49
  return {"status": "ok"}
 
44
  raise RuntimeError(f"Model not found at path: {model_path}")
45
  llm = Llama(model_path=model_path)
46
 
47
+ @app.get("/", response_class="PlainTextResponse")
48
+ async def root():
49
+ return "Ollama is running"
50
+
51
  @app.get("/health")
52
  async def health_check():
53
  return {"status": "ok"}