From 1f5911d2fab75675425a199adb531c0bfa0ac1d6 Mon Sep 17 00:00:00 2001 From: sageTheDM Date: Mon, 16 Sep 2024 13:16:11 +0200 Subject: [PATCH 1/4] Improved the css & html --- html/index.html | 74 ++++++++++++++++++++++++++++--------------------- html/styles.css | 40 +++++++++++++++++++++----- 2 files changed, 76 insertions(+), 38 deletions(-) diff --git a/html/index.html b/html/index.html index 1cf1fdf..087940a 100644 --- a/html/index.html +++ b/html/index.html @@ -15,16 +15,26 @@
@@ -33,26 +43,28 @@

Different AI models

- -
-

Code

-
-
-
-

Math

-
-
-
-

Language

-
-
-
-

Default

-
-
-
-

Custom

-
+
+ +
+

Code

+
+
+
+

Math

+
+
+
+

Language

+
+
+
+

Default

+
+
+
+

Custom

+
+
@@ -75,4 +87,4 @@ - + \ No newline at end of file diff --git a/html/styles.css b/html/styles.css index 1c62c93..399202a 100644 --- a/html/styles.css +++ b/html/styles.css @@ -62,23 +62,49 @@ body { .history ul li { padding: 10px 0; border-bottom: 1px solid var(--text-color); + width: 100%; } + +.history ul li a{ + display: block; + text-decoration: none; + color: white; + width: 100%; + padding: 5px; +} + +.history ul li a:hover{ + background-color: var(--input-button-hover-color); +} + /* Models Section */ .models { - grid-column: 1; - grid-row: 2; - display: flex; - justify-content: space-between; - align-items: center; background-color: var(--models-background-color); border-radius: 2em; padding: 1em; height: 40vh; /* Adjusted height to occupy 40% of the viewport height */ } -.models .title h3 { + +.models h3 { padding: 2px; margin: 5px; } + +.models .title h3 { + padding: 2px; + margin: 5px; + padding-bottom: 1em; +} + +.grid{ + grid-column: 1; + grid-row: 2; + display: flex; + justify-content: space-between; + align-items: center; + padding-top: 1em; +} + .ai-class { text-align: center; display: flex; @@ -187,4 +213,4 @@ body { } .input button:hover { background-color: var(--input-button-hover-color); -} +} \ No newline at end of file From 0ccfd98e32ac6c7b296d2d9bba3770c0187558d3 Mon Sep 17 00:00:00 2001 From: Patrick_Pluto Date: Mon, 16 Sep 2024 13:16:26 +0200 Subject: [PATCH 2/4] Initial Flask Setup --- .gitignore | 1 + py/.idea/.gitignore | 3 --- py/.idea/inspectionProfiles/profiles_settings.xml | 6 ------ py/.idea/misc.xml | 7 ------- py/.idea/modules.xml | 8 -------- py/.idea/py.iml | 8 -------- py/.idea/vcs.xml | 6 ------ py/venv.sh | 2 +- py/web_flask.py | 11 +++++++++++ 9 files changed, 13 insertions(+), 39 deletions(-) delete mode 100644 py/.idea/.gitignore delete mode 100644 py/.idea/inspectionProfiles/profiles_settings.xml delete mode 100644 py/.idea/misc.xml delete mode 100644 py/.idea/modules.xml delete mode 100644 py/.idea/py.iml delete mode 100644 py/.idea/vcs.xml mode change 100644 => 100755 py/venv.sh create mode 100644 py/web_flask.py diff --git a/.gitignore b/.gitignore index c65a729..a5bc547 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ venv/ __pycache__ +.idea/ diff --git a/py/.idea/.gitignore b/py/.idea/.gitignore deleted file mode 100644 index 26d3352..0000000 --- a/py/.idea/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml diff --git a/py/.idea/inspectionProfiles/profiles_settings.xml b/py/.idea/inspectionProfiles/profiles_settings.xml deleted file mode 100644 index 105ce2d..0000000 --- a/py/.idea/inspectionProfiles/profiles_settings.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/py/.idea/misc.xml b/py/.idea/misc.xml deleted file mode 100644 index f5d7485..0000000 --- a/py/.idea/misc.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/py/.idea/modules.xml b/py/.idea/modules.xml deleted file mode 100644 index 3a65488..0000000 --- a/py/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/py/.idea/py.iml b/py/.idea/py.iml deleted file mode 100644 index 451946f..0000000 --- a/py/.idea/py.iml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/py/.idea/vcs.xml b/py/.idea/vcs.xml deleted file mode 100644 index 6c0b863..0000000 --- a/py/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/py/venv.sh b/py/venv.sh old mode 100644 new mode 100755 index ed72fee..f710380 --- a/py/venv.sh +++ b/py/venv.sh @@ -1,7 +1,7 @@ #!/bin/bash -rm -rf venv/ virtualenv venv source venv/bin/activate pip install transformers pip install torch +pip install flask diff --git a/py/web_flask.py b/py/web_flask.py new file mode 100644 index 0000000..3cc2681 --- /dev/null +++ b/py/web_flask.py @@ -0,0 +1,11 @@ +from flask import Flask + +app = Flask(__name__) + + +@app.route('/') +def index(): + return app.send_static_file('index.html') + +if __name__ == '__main__': + app.run() From 247b8a36f3526e349df5569a5b15078dcc6786d2 Mon Sep 17 00:00:00 2001 From: Patrick_Pluto Date: Mon, 16 Sep 2024 13:17:33 +0200 Subject: [PATCH 3/4] .gitignore vscode/ --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index a5bc547..15fae49 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ venv/ __pycache__ .idea/ +.vscode/ From 4cbb44b9fc39024518943b9b1fcc77aaeafedef9 Mon Sep 17 00:00:00 2001 From: Patrick_Pluto Date: Mon, 16 Sep 2024 13:22:37 +0200 Subject: [PATCH 4/4] changed structure --- {html => py/static}/img/microphone.svg | 0 {html => py/static}/index.html | 0 {html => py/static}/styles.css | 0 3 files changed, 0 insertions(+), 0 deletions(-) rename {html => py/static}/img/microphone.svg (100%) rename {html => py/static}/index.html (100%) rename {html => py/static}/styles.css (100%) diff --git a/html/img/microphone.svg b/py/static/img/microphone.svg similarity index 100% rename from html/img/microphone.svg rename to py/static/img/microphone.svg diff --git a/html/index.html b/py/static/index.html similarity index 100% rename from html/index.html rename to py/static/index.html diff --git a/html/styles.css b/py/static/styles.css similarity index 100% rename from html/styles.css rename to py/static/styles.css