Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v6.0.3 update #39

Merged
merged 5 commits into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ static/db/history/*.json
!static/db/history/history_template.json
static/audio/output.aiff
static/audio/output.mp3
lib/datasets/yuna/
lib/models/
lib/models/agi/*
lib/models/yuna/*
!lib/models/agi/README.md
!lib/models/yuna/README.md
static/img/call/*
!static/img/call/image_template.jpg
static/img/art/*
Expand Down
862 changes: 661 additions & 201 deletions LICENSE

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const createWindow = () => {
resizable: true,
titleBarStyle: 'hidden',
title: 'Yuna AI',
icon: `${currentPath}/static/img/yuna.png`,
icon: `${currentPath}/static/img/yuna-ai.png`,
openDevTools: false,
vibrancy: 'appearance-based',
darkTheme: true,
Expand Down
Empty file added dialog.txt
Empty file.
18 changes: 9 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
<title>Home - Yuna AI</title>
<link rel="canonical" href="http://www.yuna-ai.live/">
<meta property="og:url" content="http://www.yuna-ai.live/">
<meta property="og:image" content="http://www.yuna-ai.live/static/img/Yuna AI.png">
<meta property="og:image" content="http://www.yuna-ai.live/static/img/yuna-ai.png">
<meta name="twitter:title" content="Yuna AI">
<meta property="og:description" content="Your personal AI girlfriend">
<meta property="og:type" content="website">
<meta name="description" content="Your personal AI girlfriend">
<meta property="og:title" content="Yuna AI">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="http://www.yuna-ai.live/static/img/Yuna AI.png">
<meta name="twitter:image" content="http://www.yuna-ai.live/static/img/yuna-ai.png">
<meta name="twitter:description" content="Your personal AI girlfriend">
<script type="application/ld+json">
{
Expand All @@ -34,15 +34,16 @@
<link rel="stylesheet" href="static/bootstrap/css/bootstrap.min.css?h=4a137410e50fe91a22b09a0763454a44">
<link rel="manifest" href="manifest.json?h=004568d74d94b33449c6a33e2093f1ff">
<link rel="stylesheet" href="static/css/Inter.css?h=1f256599f31464e8892b832459c8f069">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
</head>

<body>
<!-- Start: Navbar Centered Links -->
<nav class="navbar navbar-expand-md sticky-top py-3 navbar-dark" id="mainNav">
<nav class="navbar navbar-expand-md sticky-top py-3 navbar-dark bg-dark" id="mainNav">
<div class="container"><a class="navbar-brand d-flex align-items-center" href="/">
<span class="bs-icon-sm bs-icon-circle shadow d-flex justify-content-center align-items-center me-2 bs-icon">
<!-- Add img-fluid class and set a max-height -->
<img src="static/img/Yuna AI.png" alt="Yuna AI" class="img-fluid" style="max-height: 70px;">
<img src="static/img/yuna-ai.png" alt="Yuna AI" class="img-fluid" style="max-height: 45px;">
</span>
<span>Yuna AI</span>
</a>
Expand Down Expand Up @@ -159,7 +160,7 @@ <h2 class="fw-bold"><strong>What People Say About us</strong></h2>
<div class="col mb-4">
<div class="d-flex flex-column align-items-center align-items-sm-start">
<p class="bg-dark border rounded border-dark p-4">Yuna AI has been a game-changer for our company. The seamless integration and robust analytics have empowered us to make data-driven decisions that have propelled our growth. Their customer service is unmatched, always there when we need them.</p>
<div class="d-flex"><img class="rounded-circle flex-shrink-0 me-3 fit-cover" width="50" height="50" src="static/img/team/avatar2.jpg?h=7086b181e9fb853914a2cca97301c640">
<div class="d-flex"><i class="bi bi-person rounded-circle flex-shrink-0 me-3"></i>
<div>
<p class="fw-bold text-primary mb-0">John Smith</p>
<p class="text-muted mb-0">SEO, TechForward Solutions</p>
Expand All @@ -170,7 +171,7 @@ <h2 class="fw-bold"><strong>What People Say About us</strong></h2>
<div class="col mb-4">
<div class="d-flex flex-column align-items-center align-items-sm-start">
<p class="bg-dark border rounded border-dark p-4">Yuna AI is like the best girlfriend I never had. She's always there to listen, offers thoughtful advice, and helps me stay organized with gentle reminders. It's the personal touch that makes Yuna AI feel like more than just a program.</p>
<div class="d-flex"><img class="rounded-circle flex-shrink-0 me-3 fit-cover" width="50" height="50" src="static/img/team/avatar4.jpg?h=13fcb1a3bcb58463519bc5974513259b">
<div class="d-flex"><i class="bi bi-person rounded-circle flex-shrink-0 me-3"></i>
<div>
<p class="fw-bold text-primary mb-0">Michael Walker</p>
<p class="text-muted mb-0">Freelance Designer</p>
Expand All @@ -181,7 +182,7 @@ <h2 class="fw-bold"><strong>What People Say About us</strong></h2>
<div class="col mb-4">
<div class="d-flex flex-column align-items-center align-items-sm-start">
<p class="bg-dark border rounded border-dark p-4">As an executive assistant, Yuna AI has become my right hand. The efficiency and intuitive design have streamlined my workflow, allowing me to focus on high-priority tasks. It's like having an extra set of hands to manage the day-to-day.</p>
<div class="d-flex"><img class="rounded-circle flex-shrink-0 me-3 fit-cover" width="50" height="50" src="static/img/team/avatar5.jpg?h=3c112678b7e2b1881f0b09da11f0e1e7">
<div class="d-flex"><i class="bi bi-person rounded-circle flex-shrink-0 me-3"></i>
<div>
<p class="fw-bold text-primary mb-0">Emily Rin</p>
<p class="text-muted mb-0">Executive Assistant at Global Enterprises</p>
Expand Down Expand Up @@ -244,7 +245,6 @@ <h6 class="fw-bold mb-0">Location</h6>
<div class="bg-dark border rounded border-dark d-flex flex-column justify-content-between align-items-center flex-lg-row p-4 p-lg-5">
<div class="text-center text-lg-start py-3 py-lg-1">
<h2 class="fw-bold mb-2">Subscribe to our newsletter</h2>
<p class="mb-0">Imperdiet consectetur dolor.</p>
</div>
<form class="d-flex justify-content-center flex-wrap flex-lg-nowrap" method="post">
<div class="my-2"><input class="border rounded-pill shadow-sm form-control" type="email" name="email" placeholder="Your Email"></div>
Expand Down Expand Up @@ -277,7 +277,7 @@ <h3 class="fs-6 fw-bold">About</h3>
<div class="col-lg-3 text-center text-lg-start d-flex flex-column align-items-center order-first align-items-lg-start order-lg-last">
<div class="fw-bold d-flex align-items-center mb-2"><span class="bs-icon-sm bs-icon-circle d-flex justify-content-center align-items-center bs-icon me-2"><span class="bs-icon-sm bs-icon-circle shadow d-flex justify-content-center align-items-center me-2 bs-icon">
<!-- Add img-fluid class and set a max-height -->
<img src="static/img/Yuna AI.png" alt="Yuna AI" class="img-fluid" style="max-height: 70px;">
<img src="static/img/yuna-ai.png" alt="Yuna AI" class="img-fluid" style="max-height: 45px;">
</span></span><span>Yuna AI</span></div>
<p class="text-muted">Your personal AI girlfriend.</p>
</div><!-- End: Social Icons -->
Expand Down
9 changes: 8 additions & 1 deletion index.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ def configure_routes(self):
self.app.route('/image', methods=['POST'])(self.handle_image_request)
self.app.route('/message', methods=['POST'])(self.handle_message_request)
self.app.route('/audio', methods=['POST'])(self.handle_audio_request)

def run(self):
self.app.run(host='0.0.0.0', port=self.config["server"]["port"])

Expand Down Expand Up @@ -86,6 +85,14 @@ def handle_message_request(self):
text = data.get('text')
template = data.get('template')

# Print all the data received from the client in the terminal for debugging in the table format
print(f"""
chat_id: {chat_id}
speech: {speech}
text: {text}
template: {template}
""")

response = self.chat_generator.generate(chat_id, speech, text, template)

return jsonify({'response': response})
Expand Down
6 changes: 0 additions & 6 deletions lib/article.py

This file was deleted.

Loading
Loading