diff --git a/index.html b/index.html
index e70a072..086466f 100644
--- a/index.html
+++ b/index.html
@@ -3,7 +3,7 @@
-
+
Yuna AI
@@ -85,7 +85,7 @@
@@ -105,13 +105,13 @@ The best solution for you and your customers
+ src="/static/img/products/phone-screen.png" alt="Prompt Templates">
+ src="/static/img/yuna-girl.png" alt="Yuna">
+ src="/static/img/products/chat.png" alt="Chat">
@@ -387,7 +387,7 @@ About
class="bs-icon-sm bs-icon-circle d-flex justify-content-center align-items-center bs-icon me-2">
-
+
Yuna AI
Your personal AI girlfriend.
@@ -480,7 +480,6 @@ Meet Our Team
-
diff --git a/index.py b/index.py
index 2901ed3..e7fc09e 100644
--- a/index.py
+++ b/index.py
@@ -8,6 +8,7 @@
import os
from itsdangerous import URLSafeTimedSerializer
from flask_login import login_manager
+from flask_compress import Compress
with open('static/config.json', 'r') as config_file:
config = json.load(config_file)
@@ -22,6 +23,7 @@ def __init__(self):
self.app.config['COMPRESS_ALGORITHM'] = ['br', 'gzip']
self.app.config['COMPRESS_LEVEL'] = 6
self.app.config['COMPRESS_MIMETYPES'] = ['text/html', 'text/css', 'text/xml', 'application/json', 'application/javascript']
+ Compress(self.app)
login_manager.init_app(self.app)
login_manager.login_view = 'main'
login_manager.user_loader(self.user_loader)
@@ -84,8 +86,8 @@ def configure_routes(self):
self.app.route('/message', methods=['POST'], endpoint='message')(lambda: handle_message_request(self.chat_generator, self.chat_history_manager))
self.app.route('/image', methods=['POST'], endpoint='image')(lambda: handle_image_request(self.chat_history_manager))
self.app.route('/audio', methods=['POST'], endpoint='audio')(lambda: handle_audio_request(self))
- self.app.route('/logout', methods=['POST'])(self.logout)
- self.app.route('/services', methods=['GET'], endpoint='services')(lambda: services(self))
+ self.app.route('/logout', methods=['GET'])(self.logout)
+ self.app.route('/services.html', methods=['GET'], endpoint='services')(lambda: services(self))
def custom_static(self, filename):
if not filename.startswith('static/') and not filename.startswith('/favicon.ico') and not filename.startswith('/manifest.json'):
@@ -98,6 +100,7 @@ def image_pwa(self):
@login_required
def logout(self):
logout_user()
+ print('User logged out')
return redirect(url_for('main'))
def main(self):
diff --git a/lib/router.py b/lib/router.py
index b665910..877d6ab 100644
--- a/lib/router.py
+++ b/lib/router.py
@@ -74,7 +74,7 @@ def handle_audio_request(self):
except Exception as e:
return jsonify({'error': str(e)}), 500
-async def handle_image_request(chat_history_manager):
+def handle_image_request(chat_history_manager):
data = request.get_json()
if 'image' in data and 'task' in data and data['task'] == 'caption':
diff --git a/login.html b/login.html
index e72a881..9c5a0f2 100644
--- a/login.html
+++ b/login.html
@@ -3,9 +3,8 @@
-
- Yuna AI | Login
+
+ Yuna AI
@@ -26,7 +25,7 @@
"url": "http://www.yuna-ai.live"
}
-
+
@@ -45,6 +44,11 @@
font-style: normal;
font-weight: normal;
}
+
+ img {
+ height: 300px;
+ width: auto;
+ }
-
@@ -156,9 +160,8 @@
Delete Account
-
-
-
+
+