Spaces:
Runtime error
Runtime error
Download app.py from Anshu370/AI_Similar_Image_Visualizer: direct link, hf CLI and curl.
- Browser
- Download file 410 Bytes
-
https://huggingface.co/spaces/Anshu370/AI_Similar_Image_Visualizer/resolve/main/app.py
- Command line
-
hf download hf://spaces/Anshu370/AI_Similar_Image_Visualizer/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Anshu370/AI_Similar_Image_Visualizer/resolve/main/app.py
410 Bytes
| from fastapi import FastAPI | |
| from fastapi.middleware.cors import CORSMiddleware | |
| import uvicorn | |
| import api.endpoints as endpoints | |
| app = FastAPI() | |
| app.add_middleware( | |
| CORSMiddleware, | |
| allow_origins=["*"], | |
| allow_credentials=True, | |
| allow_methods=["*"], | |
| allow_headers=["*"], | |
| ) | |
| app.include_router(endpoints.router) | |
| def main(): | |
| return {"message": " AI Similar Image Visualizer"} | |