Spaces:
Runtime error
Runtime error
Sébastien De Greef
chore: Update Dockerfile to install CUDA 12.4.1 and cuDNN 9.1.1 libraries
7ac7d6c
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") | |
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) | |