Spaces:
Running
Running
Ron Au
commited on
Commit
·
0efceff
1
Parent(s):
5513f71
test
Browse files
app.py
CHANGED
@@ -2,15 +2,15 @@ from time import time
|
|
2 |
from statistics import mean
|
3 |
|
4 |
from fastapi import BackgroundTasks, FastAPI
|
5 |
-
from fastapi.staticfiles import StaticFiles
|
6 |
-
from fastapi.responses import FileResponse
|
7 |
|
8 |
from modules.details import rand_details
|
9 |
from modules.inference import generate_image
|
10 |
|
11 |
app = FastAPI()
|
12 |
|
13 |
-
app.mount("/static", StaticFiles(directory="static"), name="static")
|
14 |
|
15 |
tasks = {}
|
16 |
|
|
|
2 |
from statistics import mean
|
3 |
|
4 |
from fastapi import BackgroundTasks, FastAPI
|
5 |
+
# from fastapi.staticfiles import StaticFiles
|
6 |
+
# from fastapi.responses import FileResponse
|
7 |
|
8 |
from modules.details import rand_details
|
9 |
from modules.inference import generate_image
|
10 |
|
11 |
app = FastAPI()
|
12 |
|
13 |
+
# app.mount("/static", StaticFiles(directory="static"), name="static")
|
14 |
|
15 |
tasks = {}
|
16 |
|