diff --git a/app/server.py b/app/server.py index fc713eaba..a31b9600e 100644 --- a/app/server.py +++ b/app/server.py @@ -4,15 +4,17 @@ from fastai import * from fastai.vision import * from io import BytesIO +from pathlib import Path from starlette.applications import Starlette from starlette.middleware.cors import CORSMiddleware from starlette.responses import HTMLResponse, JSONResponse from starlette.staticfiles import StaticFiles +import sys -export_file_url = 'https://www.dropbox.com/s/6bgq8t6yextloqp/export.pkl?raw=1' +export_file_url = 'https://drive.google.com/uc?export=download&id=1EXIrm0PYJ5-nFWnNgWkWTx9yFdgp_niW' export_file_name = 'export.pkl' -classes = ['black', 'grizzly', 'teddys'] +classes = ['alienware', 'macbook', 'razer'] path = Path(__file__).parent app = Starlette() diff --git a/app/static/style.css b/app/static/style.css index b1065f8de..a67b21568 100644 --- a/app/static/style.css +++ b/app/static/style.css @@ -1,5 +1,5 @@ body { - background-color: #fff; + background-color: rgb(77, 74, 74); } .no-display { @@ -17,7 +17,7 @@ body { font-size: 30px; margin-top: 1em; margin-bottom: 1em; - color: #262626; + color: #43b643b6; } .content { @@ -43,10 +43,10 @@ button.choose-file-button { width: 200px; height: 40px; border-radius: 2px; - background-color: #ffffff; - border: solid 1px #7052CB; + background-color: #69666669; + border: solid 1px rgb(0, 0, 0); font-size: 13px; - color: #7052CB; + color: #43b643b6; } button.analyze-button { diff --git a/app/view/index.html b/app/view/index.html index 6642e26f5..3e336106e 100644 --- a/app/view/index.html +++ b/app/view/index.html @@ -7,10 +7,14 @@
- Use images of teddy bears, black bears, grizzly bears, or - all three! + Use images of Macbooks, Razer Blades, + Alienwares, or all three! +
++ This classifier was built as a personal project inspired by Lesson 2 + of the fastai course v3 (2019).