discord-bot / src /main.py
Sébastien De Greef
chore: Update Dockerfile to install CUDA 12.4.1 and cuDNN 9.1.1 libraries
7ac7d6c
raw
history blame
503 Bytes
print("Started Bot...")
from fastapi import FastAPI
from fastapi.staticfiles import StaticFiles
from fastapi.responses import HTMLResponse
app = FastAPI()
# Mount the static directory
app.mount("/static", StaticFiles(directory="static"), name="static")
@app.get("/", response_class=HTMLResponse)
async def read_index():
with open("static/index.html") as f:
return f.read()
if __name__ == "__main__":
import uvicorn
uvicorn.run(app, host="0.0.0.0", port=7260)