Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -46,6 +46,10 @@ mock_image = Image.new("RGB", (448, 448), (255, 255, 255))
|
|
46 |
ds = []
|
47 |
images = []
|
48 |
|
|
|
|
|
|
|
|
|
49 |
@app.post("/index")
|
50 |
async def index(files: List[UploadFile] = File(...)):
|
51 |
global ds, images
|
|
|
46 |
ds = []
|
47 |
images = []
|
48 |
|
49 |
+
@app.get("/")
|
50 |
+
def read_root():
|
51 |
+
return RedirectResponse(url="/docs")
|
52 |
+
|
53 |
@app.post("/index")
|
54 |
async def index(files: List[UploadFile] = File(...)):
|
55 |
global ds, images
|