Spaces:
Running
Running
File size: 258 Bytes
53d138c |
1 2 3 4 5 6 7 8 9 10 11 12 |
from fastapi import FastAPI
from fastapi.responses import FileResponse
app = FastAPI()
@app.get("/")
async def read_root():
return FileResponse("index.html")
if __name__ == "__main__":
import uvicorn
uvicorn.run(app, host="0.0.0.0", port=7860) |