Spaces:
Sleeping
Sleeping
Rifat Azad commited on
Commit ·
481a481
1
Parent(s): 0a640f3
main page image added
Browse files
logger.py
CHANGED
|
@@ -1,7 +1,10 @@
|
|
| 1 |
from fastapi import FastAPI
|
|
|
|
| 2 |
|
| 3 |
app = FastAPI()
|
| 4 |
|
| 5 |
@app.get("/")
|
| 6 |
async def read_root():
|
| 7 |
-
|
|
|
|
|
|
|
|
|
| 1 |
from fastapi import FastAPI
|
| 2 |
+
from fastapi.responses import FileResponse
|
| 3 |
|
| 4 |
app = FastAPI()
|
| 5 |
|
| 6 |
@app.get("/")
|
| 7 |
async def read_root():
|
| 8 |
+
# Replace the URL with the desired image URL
|
| 9 |
+
image_url = "https://e0.pxfuel.com/wallpapers/464/238/desktop-wallpaper-python-graphic-design-graphical-user-interface-django-standing-background-python-coding.jpg"
|
| 10 |
+
return FileResponse(image_url)
|