Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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"}
|