Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -32,6 +32,14 @@ def load_model():
|
|
32 |
raise RuntimeError(f"Model not found at path: {model_path}")
|
33 |
llm = Llama(model_path=model_path)
|
34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
@app.post("/chat")
|
36 |
async def chat(req: ChatRequest):
|
37 |
global llm
|
|
|
32 |
raise RuntimeError(f"Model not found at path: {model_path}")
|
33 |
llm = Llama(model_path=model_path)
|
34 |
|
35 |
+
@app.get("/")
|
36 |
+
async def root():
|
37 |
+
return {"message": "API is running"}
|
38 |
+
|
39 |
+
@app.get("/api/tags")
|
40 |
+
async def api_tags():
|
41 |
+
return []
|
42 |
+
|
43 |
@app.post("/chat")
|
44 |
async def chat(req: ChatRequest):
|
45 |
global llm
|