Diamanta commited on
Commit
2cdd46e
·
verified ·
1 Parent(s): c0132d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
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