DenVolco/PyDVPL_Discord_Bot
0
1from fastapi import FastAPI2from fastapi.responses import FileResponse3 4app = FastAPI()5 6@app.get("/")7async def read_root():8 # Assuming your PNG file is named "image.png" and is in the same directory as your script9 file_path = "pydvpl_banner.png"10 # Serve the image using FileResponse11 return FileResponse(file_path, media_type="image/png")12 