Spaces:
Sleeping
Sleeping
Refactor: css file address
Browse files- app.py +1 -1
- templates/index.html +1 -1
- templates/inference.html +1 -1
- templates/train.html +1 -1
- templates/train_compare.html +1 -1
- templates/train_single.html +1 -1
app.py
CHANGED
@@ -19,7 +19,7 @@ warnings.filterwarnings("ignore", category=UserWarning, module="torchvision.tran
|
|
19 |
|
20 |
app = FastAPI()
|
21 |
|
22 |
-
# Mount static files
|
23 |
app.mount("/static", StaticFiles(directory="static"), name="static")
|
24 |
templates = Jinja2Templates(directory="templates")
|
25 |
|
|
|
19 |
|
20 |
app = FastAPI()
|
21 |
|
22 |
+
# Mount static files with a name parameter
|
23 |
app.mount("/static", StaticFiles(directory="static"), name="static")
|
24 |
templates = Jinja2Templates(directory="templates")
|
25 |
|
templates/index.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
<title>MNIST Digit Classification</title>
|
7 |
-
<link rel="stylesheet" href="{{ url_for('static',
|
8 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
9 |
</head>
|
10 |
<body>
|
|
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
<title>MNIST Digit Classification</title>
|
7 |
+
<link rel="stylesheet" href="{{ url_for('static', path='/css/style.css') }}">
|
8 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
9 |
</head>
|
10 |
<body>
|
templates/inference.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
<title>Test Model - MNIST</title>
|
7 |
-
<link rel="stylesheet" href="{{ url_for('static',
|
8 |
<!-- <link rel="stylesheet" href="{{ url_for('static', path='/css/buttons.css') }}"> -->
|
9 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
10 |
</head>
|
|
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
<title>Test Model - MNIST</title>
|
7 |
+
<link rel="stylesheet" href="{{ url_for('static', path='/css/style.css') }}">
|
8 |
<!-- <link rel="stylesheet" href="{{ url_for('static', path='/css/buttons.css') }}"> -->
|
9 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
10 |
</head>
|
templates/train.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
<title>Train Models - MNIST</title>
|
7 |
-
<link rel="stylesheet" href="{{ url_for('static',
|
8 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Roboto+Mono&display=swap" rel="stylesheet">
|
9 |
</head>
|
10 |
<body>
|
|
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
<title>Train Models - MNIST</title>
|
7 |
+
<link rel="stylesheet" href="{{ url_for('static', path='/css/style.css') }}">
|
8 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Roboto+Mono&display=swap" rel="stylesheet">
|
9 |
</head>
|
10 |
<body>
|
templates/train_compare.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
<title>Compare Models - MNIST</title>
|
7 |
-
<link rel="stylesheet" href="{{ url_for('static',
|
8 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Roboto+Mono&display=swap" rel="stylesheet">
|
9 |
</head>
|
10 |
<body>
|
|
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
<title>Compare Models - MNIST</title>
|
7 |
+
<link rel="stylesheet" href="{{ url_for('static', path='/css/style.css') }}">
|
8 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Roboto+Mono&display=swap" rel="stylesheet">
|
9 |
</head>
|
10 |
<body>
|
templates/train_single.html
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
<title>Train Single Model - MNIST</title>
|
7 |
-
<link rel="stylesheet" href="{{ url_for('static',
|
8 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Roboto+Mono&display=swap" rel="stylesheet">
|
9 |
</head>
|
10 |
<body>
|
|
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
<title>Train Single Model - MNIST</title>
|
7 |
+
<link rel="stylesheet" href="{{ url_for('static', path='/css/style.css') }}">
|
8 |
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Roboto+Mono&display=swap" rel="stylesheet">
|
9 |
</head>
|
10 |
<body>
|