Spaces:
Sleeping
Sleeping
forgot the file
Browse files
main.py
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from fastapi import FastAPI
|
2 |
+
from fastapi.staticfiles import StaticFiles
|
3 |
+
|
4 |
+
app = FastAPI()
|
5 |
+
|
6 |
+
# Mount the directory containing the files to be served
|
7 |
+
app.mount("/", StaticFiles(directory="."), name="files")
|