Paweł Łaba
commited on
Commit
·
2434569
1
Parent(s):
9eac87f
zmiany w index
Browse files
app.py
CHANGED
@@ -6,10 +6,12 @@ from tensorflow import keras
|
|
6 |
import json
|
7 |
import os
|
8 |
|
9 |
-
app = FastAPI()
|
10 |
|
11 |
-
#
|
12 |
-
app
|
|
|
|
|
|
|
13 |
|
14 |
@app.get("/", response_class=HTMLResponse)
|
15 |
async def read_root():
|
|
|
6 |
import json
|
7 |
import os
|
8 |
|
|
|
9 |
|
10 |
+
# Ustawienie prefiksu aplikacji
|
11 |
+
app = FastAPI(root_path="/spaces/labapawel/tictactoe")
|
12 |
+
|
13 |
+
# Montowanie katalogu publicznego
|
14 |
+
app.mount("/static", StaticFiles(directory="public"), name="static")
|
15 |
|
16 |
@app.get("/", response_class=HTMLResponse)
|
17 |
async def read_root():
|