Spaces:
Running
Running
| from fastapi import FastAPI | |
| from fastapi.responses import HTMLResponse | |
| import os | |
| app = FastAPI() | |
| def root(): | |
| with open("index.html", "r", encoding="utf-8") as f: | |
| return f.read() | |
| if __name__ == "__main__": | |
| import uvicorn | |
| uvicorn.run(app, host="0.0.0.0", port=7860) |