sushil3125 commited on
Commit
b6b7d0e
·
1 Parent(s): adfbec3

added status api

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -24,3 +24,7 @@ async def get_embedding(input: TextInput):
24
  else:
25
  embeddings = bge_small_model.encode(input.text)
26
  return {"embeddings": embeddings.tolist()}
 
 
 
 
 
24
  else:
25
  embeddings = bge_small_model.encode(input.text)
26
  return {"embeddings": embeddings.tolist()}
27
+
28
+ @app.get("/status")
29
+ async def status():
30
+ return {"status": "Server is up and running"}