Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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/")
|