Juna190825 commited on
Commit
d31c706
·
verified ·
1 Parent(s): 6326b0c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -7,6 +7,10 @@ app = FastAPI()
7
  class Message(BaseModel):
8
  text: str
9
 
 
 
 
 
10
  @app.post("/ask")
11
  async def ask_searchgpt(msg: Message):
12
  client = Client("https://umint-searchgpt.hf.space/")
 
7
  class Message(BaseModel):
8
  text: str
9
 
10
+ @app.get("/")
11
+ def read_root():
12
+ return {"status": "SearchGPT API is running"}
13
+
14
  @app.post("/ask")
15
  async def ask_searchgpt(msg: Message):
16
  client = Client("https://umint-searchgpt.hf.space/")