Spaces:
Runtime error
Runtime error
from fastapi import FastAPI | |
from fastapi.responses import FileResponse | |
app = FastAPI() | |
def read_root(): | |
return FileResponse("static/index.html") | |
if __name__ == "__main__": | |
import uvicorn | |
uvicorn.run("main:app", host="0.0.0.0", port=8000) | |