diff --git a/.gitignore b/.gitignore
index c65a729..15fae49 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,4 @@
venv/
__pycache__
+.idea/
+.vscode/
diff --git a/html/index.html b/html/index.html
deleted file mode 100644
index 1cf1fdf..0000000
--- a/html/index.html
+++ /dev/null
@@ -1,78 +0,0 @@
-
-
-
-
-
-
-
- AI Assistant
-
-
-
-
-
-
-
-
-
- - history1
- - history2
- - history3
- - history4
- - history5
- - history6
- - history7
- - history8
- - history9
- - history10
-
-
-
-
-
-
-
Different AI models
-
-
-
-
-
-
-
-
-
-
-
-
-
User: What is the weather today?
-
AI: It's sunny with a slight breeze.
-
User: Great! Thank you!
-
AI: You're welcome!
-
-
-
-
-
-
-
-
-
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/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/py/static/index.html b/py/static/index.html
new file mode 100644
index 0000000..087940a
--- /dev/null
+++ b/py/static/index.html
@@ -0,0 +1,90 @@
+
+
+
+
+
+
+
+ AI Assistant
+
+
+
+
+
+
+
+
+
+
+
+
+
Different AI models
+
+
+
+
+
+
+
+
User: What is the weather today?
+
AI: It's sunny with a slight breeze.
+
User: Great! Thank you!
+
AI: You're welcome!
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/html/styles.css b/py/static/styles.css
similarity index 92%
rename from html/styles.css
rename to py/static/styles.css
index 1c62c93..399202a 100644
--- a/html/styles.css
+++ b/py/static/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
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()