CodexWebVM / app.py
LordXido's picture
Create app.py
b92ad8b verified
raw
history blame contribute delete
310 Bytes
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)