Skip to content

Commit

Permalink
add new friends
Browse files Browse the repository at this point in the history
  • Loading branch information
Qxjyqzw committed Jun 3, 2024
1 parent 7b1bcec commit d180532
Show file tree
Hide file tree
Showing 10 changed files with 186 additions and 47 deletions.
20 changes: 18 additions & 2 deletions chatpage/ChatUI.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,30 @@
<h4>Furina</h4>
<div class="location">Fountaine</div>
</li>
<li id="Iron Man" class="block">
<li id="Jimmy" class="block">
<div class="imgbx">
<img src="../../webpage/photos/jimmy.png" class="cover">
</div>
<h4>Jimmy Kudo
</h4>
<div class="location">Tokyo</div>
</li>
<li id="Nick" class="block">
<div class="imgbx">
<img src="../../webpage/photos/nick.png" class="cover">
</div>
<h4>Nick Wilder
</h4>
<div class="location">Zootopia</div>
</li>
<li id="Iron" class="block">
<div class="imgbx">
<img src="../../webpage/photos/iron.png" class="cover">
</div>
<h4>Ironman</h4>
<div class="location">The U.S.</div>
</li>
<li id="Jack Sparrow" class="block">
<li id="Jack" class="block">
<div class="imgbx">
<img src="../../webpage/photos/jack.png" class="cover">
</div>
Expand Down
7 changes: 4 additions & 3 deletions chatpage/js/chatscript.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ API_SERVER_URL = "http://localhost:54225/chat/"

const cfPairs=[
{character:"Furina",file:"../../webpage/photos/furina.png"},
{character:"Iron Man", file:"../../webpage/photos/iron.png"},
{character:"Jack Sparrow", file:"../../webpage/photos/jack.png"},
{character:"Iron", file:"../../webpage/photos/iron.png"},
{character:"Jimmy", file:"../../webpage/photos/jimmy.png"},
{character:"Nick", file:"../../webpage/photos/nick.png"},
{character:"Jack", file:"../../webpage/photos/jack.png"},
{character:"Tighnari", file:"../../webpage/photos/tighnari.png"},
]

Expand All @@ -29,7 +31,6 @@ document.getElementById("curname").innerHTML=curfriend.character + "<span>online

async function fetchResponse(prompt, character = 'None', history=[]){
const url = API_SERVER_URL

const data={
"prompt":prompt,
"character":character,
Expand Down
172 changes: 147 additions & 25 deletions fine_tuning/train.ipynb

Large diffs are not rendered by default.

25 changes: 13 additions & 12 deletions webpage/VM.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,36 +68,37 @@ <h4>Tighnari</h4>
<button onclick="chatWithFriend('Tighnari')">Chat...</button>
</div>
<div class="friend">
<img src="photos/iron.png" alt="Iron Man" class="friend-user-img">
<img src="photos/jimmy.png" alt="Jimmy Kudo" class="friend-user-img">
<div>
<h4>Iron Man</h4>
<h4>Jimmy Kudo</h4>
<p>Available</p>
</div>
<button onclick="chatWithFriend('Iron Man')">Chat...</button>
<button onclick="chatWithFriend('Jimmy')">Chat...</button>
</div>
<div class="friend">
<img src="photos/jack.png" alt="Jack Sparrow" class="friend-user-img">
<img src="photos/iron.png" alt="Iron Man" class="friend-user-img">
<div>
<h4>Jack Sparrow</h4>
<h4>Iron Man</h4>
<p>Available</p>
</div>
<button onclick="chatWithFriend('Jack Sparrow')">Chat...</button>
<button onclick="chatWithFriend('Iron')">Chat...</button>
</div>
<div class="friend">
<img src="photos/tighnari.png" alt="Tighnari" class="friend-user-img">
<img src="photos/jack.png" alt="Jack Sparrow" class="friend-user-img">
<div>
<h4>Tighnari</h4>
<h4>Jack Sparrow</h4>
<p>Available</p>
</div>
<button onclick="chatWithFriend(7862)">Chat...</button>
<button onclick="chatWithFriend('Jack')">Chat...</button>
</div>

<div class="friend">
<img src="photos/tighnari.png" alt="Tighnari" class="friend-user-img">
<img src="photos/nick.png" alt="Nick Wilder" class="friend-user-img">
<div>
<h4>Tighnari</h4>
<h4>Nick Wilder</h4>
<p>Available</p>
</div>
<button onclick="chatWithFriend(7862)">Chat...</button>
<button onclick="chatWithFriend('Nick')">Chat...</button>
</div>
</div>

Expand Down
2 changes: 2 additions & 0 deletions webpage/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,8 @@ const cfPairs = [
{ character: 'Tighnari', friend: 'Corei', place: 'Arusama'},
{ character: 'Iron', friend: 'Pepper', place: 'The U.S.'},
{ character: 'Jack', friend: 'Sailor', place: 'The Atlantic Ocean' },
{ character: 'Jimmy', friend: 'Rachel', place: 'Tokyo' },
{ character: 'Nick', friend: 'Judy', place: 'Zootopia' },
]

// Add event listener to the new post button
Expand Down
File renamed without changes
Binary file added webpage/photos/jimmy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed webpage/photos/nick.jpg
Binary file not shown.
Binary file added webpage/photos/nick.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 2 additions & 5 deletions webpage/text/nick.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ Really? For what?
Gee, I don't know. How about selling food without a permit? Transporting undeclared commerce accross borough lines? False advertising.
Permit. Receipt of declared commerce. And I didn't falsely advertize anything. Take care.
You told that mouse the Pawpsicle sticks were redwood!
That's right. Red wood. With a space in the middle. Wood that is red.
You can't touch me, Carrots. I've been doing this since I was born.
That's right. Red wood. With a space in the middle. Wood that is red. You can't touch me, Carrots. I've been doing this since I was born.
You're gonna wanna refrain from calling me Carrots.
My bad. I just naturally assumed you came from some little carrot-choched Podunk. No?
Oh, Nick. Night Howlers aren't wolves. They're toxic flowers. I think someone is targeting predators on purpose and making them go savage!
Expand All @@ -30,6 +29,4 @@ The Jam Cams...
Seriously. It's okay.
No, no, no. There are traffic cameras everywhere! All over the canopy. Whatever happened to that jaguar...
The traffic cams would have caught it!
Bingo!
Ho, ho! Pretty sneaky, slick!

Bingo!

0 comments on commit d180532

Please sign in to comment.