wbrooks commited on
Commit
a5caccb
·
1 Parent(s): f6d14bf

trying to test app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -6,6 +6,15 @@ import polars as pl
6
 
7
  app = FastAPI()
8
 
 
 
 
 
 
 
 
 
 
9
  @app.get("/search")
10
  def greet_json(query: str):
11
  res_tfidf = query_docs(query)
 
6
 
7
  app = FastAPI()
8
 
9
+ @app.get("/")
10
+ def default():
11
+ return {"status": "ok", "version": 0.1}
12
+
13
+
14
+ @app.get("/square")
15
+ def square(x: int):
16
+ return {"result": x * x}
17
+
18
  @app.get("/search")
19
  def greet_json(query: str):
20
  res_tfidf = query_docs(query)