Spaces:
Sleeping
Sleeping
File size: 310 Bytes
b92ad8b | 1 2 3 4 5 6 7 8 9 10 11 12 13 | from fastapi import FastAPI
from fastapi.responses import HTMLResponse
import uvicorn
app = FastAPI()
@app.get("/", response_class=HTMLResponse)
def serve_index():
with open("index.html", "r") as file:
return file.read()
if __name__ == "__main__":
uvicorn.run(app, host="0.0.0.0", port=7860) |