Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
liquidcarbon
/
pup-fileserver
like
1
Sleeping
App
Files
Files
Community
f3b4b2e
pup-fileserver
/
main.py
pup-py
forgot the file
5ac84de
8 months ago
raw
Copy download link
history
blame
Safe
203 Bytes
from
fastapi
import
FastAPI
from
fastapi.staticfiles
import
StaticFiles
app = FastAPI()
# Mount the directory containing the files to be served
app.mount(
"/"
, StaticFiles(directory=
"."
), name=
"files"
)