Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -13,7 +13,7 @@ VerboAI Search Engine API provides three core functionalities:
|
|
| 13 |
3. Content-based search that returns the top N most relevant results from websites
|
| 14 |
|
| 15 |
The API is built with FastAPI, supports CORS, and is ready for cloud deployment. Powered by VerboAI.
|
| 16 |
-
""", version="1.0.0")
|
| 17 |
|
| 18 |
# Enable CORS
|
| 19 |
app.add_middleware(
|
|
@@ -79,9 +79,3 @@ async def search_with_content_endpoint(request: SearchWithContentRequest):
|
|
| 79 |
@app.get("/health")
|
| 80 |
async def health_check():
|
| 81 |
return {"status": "healthy"}
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
if __name__ == "__main__":
|
| 86 |
-
import uvicorn
|
| 87 |
-
uvicorn.run(app, host="0.0.0.0", port=7860)
|
|
|
|
| 13 |
3. Content-based search that returns the top N most relevant results from websites
|
| 14 |
|
| 15 |
The API is built with FastAPI, supports CORS, and is ready for cloud deployment. Powered by VerboAI.
|
| 16 |
+
""", version="1.0.0", docs_url="/", redoc_url="/redoc")
|
| 17 |
|
| 18 |
# Enable CORS
|
| 19 |
app.add_middleware(
|
|
|
|
| 79 |
@app.get("/health")
|
| 80 |
async def health_check():
|
| 81 |
return {"status": "healthy"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|