Spaces:
Runtime error
Runtime error
Download app.py from Projetweb/AiServices: direct link, hf CLI and curl.
- Browser
- Download file 525 Bytes
-
https://huggingface.co/spaces/Projetweb/AiServices/resolve/19a8d7554377f3f3761b5c6dc9e30bb619680f4d/app.py
- Command line
-
hf download hf://spaces/Projetweb/AiServices@19a8d7554377f3f3761b5c6dc9e30bb619680f4d/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Projetweb/AiServices/resolve/19a8d7554377f3f3761b5c6dc9e30bb619680f4d/app.py
525 Bytes
| from fastapi import FastAPI | |
| from Visualisation.app import router as vis_router | |
| from document_translation.app import router as trans_router | |
| app = FastAPI() | |
| # Include both services as routers | |
| app.include_router(vis_router, prefix="/visualization", tags=["Visualization"]) | |
| app.include_router(trans_router, prefix="/translation", tags=["Translation"]) | |
| def home(): | |
| return {"message": "Welcome to AI Services"} | |
| if __name__ == "__main__": | |
| import uvicorn | |
| uvicorn.run(app, host="0.0.0.0", port=7860) | |