Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
623450c
1
Parent(s):
0d739fa
Fixed some format error in main.py
Browse files- Dockerfile +1 -1
- main.py +1 -1
Dockerfile
CHANGED
@@ -33,4 +33,4 @@ HEALTHCHECK CMD curl --fail http://localhost:7860/ || exit 1
|
|
33 |
#CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|
34 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--log-level", "debug"]
|
35 |
|
36 |
-
# some change to trigger rebuild
|
|
|
33 |
#CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
|
34 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--log-level", "debug"]
|
35 |
|
36 |
+
# some change to trigger rebuild 2
|
main.py
CHANGED
@@ -15,7 +15,7 @@ app = FastAPI()
|
|
15 |
static_dir = Path(__file__).parent / "vit_captioning" / "static"
|
16 |
app.mount("/static", StaticFiles(directory=static_dir), name="static")
|
17 |
|
18 |
-
|
19 |
@app.get("/", response_class=HTMLResponse)
|
20 |
async def landing():
|
21 |
return Path("vit_captioning/static/landing.html").read_text()
|
|
|
15 |
static_dir = Path(__file__).parent / "vit_captioning" / "static"
|
16 |
app.mount("/static", StaticFiles(directory=static_dir), name="static")
|
17 |
|
18 |
+
#Landing page at `/`
|
19 |
@app.get("/", response_class=HTMLResponse)
|
20 |
async def landing():
|
21 |
return Path("vit_captioning/static/landing.html").read_text()
|