Spaces:
Sleeping
Sleeping
File size: 20,428 Bytes
fcbe31c 59a861d fcbe31c 59a861d fcbe31c 59a861d fcbe31c 59a861d fcbe31c 59a861d fcbe31c 59a861d fcbe31c 59a861d fcbe31c 59a861d fcbe31c 59a861d fcbe31c 59a861d fcbe31c 59a861d fcbe31c 59a861d fcbe31c 59a861d fcbe31c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 |
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="en"> <!--<![endif]-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="TechWave">
<meta name="author" content="SRBThemes">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>AI Chat Bot - TechWave</title>
<script>
if (!localStorage.frenify_skin) {
localStorage.frenify_skin = 'dark';
}
if (!localStorage.frenify_panel) {
localStorage.frenify_panel = '';
}
document.documentElement.setAttribute("data-techwave-skin", localStorage.frenify_skin);
if(localStorage.frenify_panel !== ''){
document.documentElement.classList.add(localStorage.frenify_panel);
}
</script>
<!-- Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Heebo:wght@100;200;300;400;500;600;700;800;900&family=Work+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
<!-- !Google Fonts -->
<!-- Styles -->
<link type="text/css" rel="stylesheet" href="desine/css/plugins.css?ver=1.0.0" />
<link type="text/css" rel="stylesheet" href="desine/css/style.css?ver=1.0.0" />
<!--[if lt IE 9]> <script type="text/javascript" src="desine/js/modernizr.custom.js"></script> <![endif]-->
<!-- !Styles -->
</head>
<body>
<!-- Moving Submenu -->
<div class="techwave_fn_fixedsub">
<ul></ul>
</div>
<!-- !Moving Submenu -->
<!-- Preloader -->
<div class="techwave_fn_preloader">
<svg>
<circle class="first_circle" cx="50%" cy="50%" r="110"></circle>
<circle class="second_circle" cx="50%" cy="50%" r="110"></circle>
</svg>
</div>
<!-- !Preloader -->
<div class="techwave_fn_font">
<a class="font__closer_link fn__icon_button" href="#"><img src="desine/svg/close.svg" alt="" class="fn__svg"></a>
<div class="font__closer"></div>
<div class="font__dialog">
<h3 class="title">Font Options</h3>
<label for="font_size">Font Size</label>
<select id="font_size">
<option value="10">10 px</option>
<option value="12">12 px</option>
<option value="14">14 px</option>
<option value="16" selected> 16 px</option>
<option value="18">18 px</option>
<option value="20">20 px</option>
<option value="22" >22 px</option>
<option value="24">24 px</option>
<option value="26">26 px</option>
<option value="28">28 px</option>
</select>
<a href="#" class="apply techwave_fn_button"><span>Apply</span></a>
</div>
</div>
<!-- MAIN WRAPPER -->
<div class="techwave_fn_wrapper fn__has_sidebar">
<div class="techwave_fn_wrap">
<!-- Searchbar -->
<div class="techwave_fn_searchbar">
<div class="search__bar">
<input class="search__input" type="text" placeholder="Search here...">
<img src="desine/svg/search.svg" alt="" class="fn__svg search__icon">
<a class="search__closer" href="#"><img src="desine/svg/close.svg" alt="" class="fn__svg"></a>
</div>
<div class="search__results">
<!-- Results will come here (via ajax after the integration you made after purchase as it doesn't work in HTML) -->
<div class="results__title">Results</div>
<div class="results__list">
<ul>
<li><a href="#">Artificial Intelligence</a></li>
<li><a href="#">Learn about the impact of AI on the financial industry</a></li>
<li><a href="#">Delve into the realm of AI-driven manufacturing</a></li>
<li><a href="#">Understand the ethical implications surrounding AI</a></li>
</ul>
</div>
</div>
</div>
<!-- !Searchbar -->
<!-- HEADER -->
<header class="techwave_fn_header">
<!-- Header left: token information -->
<div class="header__left">
<div class="fn__token_info">
<span class="token_summary">
<span class="count">120</span>
<span class="text">Tokens<br>Remain</span>
</span>
<a href="pricing.html" class="token_upgrade techwave_fn_button"><span>Upgrade</span></a>
<div class="token__popup">
Resets in <span>19 hours.</span><br>
Daily limit is <span>200 tokens</span>
</div>
</div>
</div>
<!-- /Header left: token information -->
<!-- Header right: navigation bar -->
<div class="header__right">
<div class="fn__nav_bar">
<!-- Search (bar item) -->
<div class="bar__item bar__item_search">
<a href="#" class="item_opener">
<img src="desine/svg/search.svg" alt="" class="fn__svg">
</a>
<div class="item_popup">
<input type="text" placeholder="Search">
</div>
</div>
<!-- !Search (bar item) -->
<!-- Notification (bar item) -->
<div class="bar__item bar__item_notification has_notification">
<a href="#" class="item_opener">
<img src="desine/svg/bell.svg" alt="" class="fn__svg">
</a>
<div class="item_popup">
<div class="ntfc_header">
<h2 class="ntfc_title">Notifications</h2>
<a href="notifications.html">View All</a>
</div>
<div class="ntfc_list">
<ul>
<li>
<p><a href="notification-single.html">Version 1.1.0 has been launched</a></p>
<span>34 Min Ago</span>
</li>
<li>
<p><a href="notification-single.html">Video Generation has been released</a></p>
<span>12 Apr</span>
</li>
<li>
<p><a href="notification-single.html">Terms has been updated</a></p>
<span>12 Apr</span>
</li>
</ul>
</div>
</div>
</div>
<!-- !Notification (bar item) -->
<!-- Full Screen (bar item) -->
<div class="bar__item bar__item_fullscreen">
<a href="#" class="item_opener">
<img src="desine/svg/fullscreen.svg" alt="" class="fn__svg f_screen">
<img src="desine/svg/smallscreen.svg" alt="" class="fn__svg s_screen">
</a>
</div>
<!-- !Full Screen (bar item) -->
<!-- Language (bar item) -->
<div class="bar__item bar__item_language">
<a href="#" class="item_opener">
<img src="desine/svg/language.svg" alt="" class="fn__svg">
</a>
<div class="item_popup">
<ul>
<li>
<span class="active">English</span>
</li>
<li>
<a href="#">Spanish</a>
</li>
<li>
<a href="#">French</a>
</li>
</ul>
</div>
</div>
<!-- !Language (bar item) -->
<!-- Site Skin (bar item) -->
<div class="bar__item bar__item_skin">
<a href="#" class="item_opener">
<img src="desine/svg/sun.svg" alt="" class="fn__svg light_mode">
<img src="desine/svg/moon.svg" alt="" class="fn__svg dark_mode">
</a>
</div>
<!-- !Site Skin (bar item) -->
<!-- User (bar item) -->
<div class="bar__item bar__item_user">
<a href="#" class="user_opener">
<img src="https://raw.githubusercontent.com/omarnuwrar/urmkklsoqpgh-45kjfnskhbnqwhn3jgfj2mgjm3/main/{{account_name}}.png" alt="">
</a>
<div class="item_popup">
<div class="user_profile">
<div class="user_img">
<img src="https://raw.githubusercontent.com/omarnuwrar/urmkklsoqpgh-45kjfnskhbnqwhn3jgfj2mgjm3/main/{{account_name}}.png" alt="">
</div>
<div class="user_info">
<h2 class="user_name">{{ account_name }}<span>Free</span></h2>
<p><a href="mailto:[email protected]" class="user_email">{{token2}}</a></p>
</div>
</div>
<div class="user_nav">
<ul>
<li>
<a href="user-profile.html">
<span class="icon"><img src="desine/svg/person.svg" alt="" class="fn__svg"></span>
<span class="text">Profile</span>
</a>
</li>
<li>
<a href="user-settings.html">
<span class="icon"><img src="desine/svg/setting.svg" alt="" class="fn__svg"></span>
<span class="text">Settings</span>
</a>
</li>
<li>
<a href="/">
<span class="icon"><img src="desine/svg/billing.svg" alt="" class="fn__svg"></span>
<span class="text">Billing</span>
</a>
</li>
<li>
<a href="/login">
<span class="icon"><img src="desine/svg/logout.svg" alt="" class="fn__svg"></span>
<span class="text">Log out</span>
</a>
</li>
</ul>
</div>
</div>
</div>
<!-- !User (bar item) -->
</div>
</div>
<!-- !Header right: navigation bar -->
</header>
<!-- !HEADER -->
<!-- LEFT PANEL -->
<div class="techwave_fn_leftpanel">
<div class="mobile_extra_closer"></div>
<!-- logo (left panel) -->
<div class="leftpanel_logo">
<a href="index.html" class="fn_logo">
<span class="full_logo">
<img src="desine/img/logo-desktop-full.png" alt="" class="desktop_logo">
<img src="desine/img/logo-retina-full.png" alt="" class="retina_logo">
</span>
<span class="short_logo">
<img src="desine/img/logo-desktop-mini.png" alt="" class="desktop_logo">
<img src="desine/img/logo-retina-mini.png" alt="" class="retina_logo">
</span>
</a>
<a href="#" class="fn__closer fn__icon_button desktop_closer">
<img src="desine/svg/arrow.svg" alt="" class="fn__svg">
</a>
<a href="#" class="fn__closer fn__icon_button mobile_closer">
<img src="desine/svg/arrow.svg" alt="" class="fn__svg">
</a>
</div>
<!-- !logo (left panel) -->
<!-- content (left panel) -->
<div class="leftpanel_content">
<!-- #1 navigation group -->
<div class="nav_group">
<h2 class="group__title">Start Here</h2>
<ul class="group__list">
<li>
<a href="index.html" class="fn__tooltip menu__item" data-position="right" title="Home">
<span class="icon"><img src="desine/svg/home.svg" alt="" class="fn__svg"></span>
<span class="text">Home</span>
</a>
</li>
<li>
<a href="community-feed.html" class="fn__tooltip menu__item" data-position="right" title="Community Feed">
<span class="icon"><img src="desine/svg/community.svg" alt="" class="fn__svg"></span>
<span class="text">Community Feed</span>
</a>
</li>
<li>
<a href="personal-feed.html" class="fn__tooltip menu__item" data-position="right" title="Personal Feed">
<span class="icon"><img src="desine/svg/person.svg" alt="" class="fn__svg"></span>
<span class="text">Personal Feed<span class="count">48</span></span>
</a>
</li>
<li>
<a href="models.html" class="fn__tooltip menu__item" data-position="right" title="Finetuned Models">
<span class="icon"><img src="desine/svg/cube.svg" alt="" class="fn__svg"></span>
<span class="text">Finetuned Models</span>
</a>
</li>
</ul>
</div>
<!-- !#1 navigation group -->
<!-- #2 navigation group -->
<div class="nav_group">
<h2 class="group__title">User Tools</h2>
<ul class="group__list">
<li>
<a href="image-generation.html" class="fn__tooltip menu__item" data-position="right" title="Image Generation">
<span class="icon"><img src="desine/svg/image.svg" alt="" class="fn__svg"></span>
<span class="text">Image Generation</span>
</a>
</li>
<li>
<a href="ai-chat-bot.html" class="fn__tooltip active menu__item" data-position="right" title="AI Chat Bot">
<span class="icon"><img src="desine/svg/chat.svg" alt="" class="fn__svg"></span>
<span class="text">AI Chat Bot</span>
</a>
</li>
</ul>
</div>
<!-- !#2 navigation group -->
<!-- #3 navigation group -->
<div class="nav_group">
<h2 class="group__title">Support</h2>
<ul class="group__list">
<li>
<a href="pricing.html" class="fn__tooltip menu__item" data-position="right" title="Pricing">
<span class="icon"><img src="desine/svg/dollar.svg" alt="" class="fn__svg"></span>
<span class="text">Pricing</span>
</a>
</li>
<li class="menu-item-has-children">
<a href="video-generation.html" class="fn__tooltip menu__item" title="FAQ & Help" data-position="right">
<span class="icon"><img src="desine/svg/question.svg" alt="" class="fn__svg"></span>
<span class="text">FAQ & Help</span>
<span class="trigger"><img src="desine/svg/arrow.svg" alt="" class="fn__svg"></span>
</a>
<ul class="sub-menu">
<li>
<a href="documentation.html"><span class="text">Documentation</span></a>
</li>
<li>
<a href="faq.html"><span class="text">FAQ</span></a>
</li>
<li>
<a href="changelog.html"><span class="text">Changelog<span class="fn__sup">(1.1.0)</span></span></a>
</li>
<li>
<a href="contact.html"><span class="text">Contact Us</span></a>
</li>
<li>
<a href="index-2.html"><span class="text">Home #2</span></a>
</li>
</ul>
</li>
<li>
<a href="/login" class="fn__tooltip menu__item" data-position="right" title="Log Out">
<span class="icon"><img src="desine/svg/logout.svg" alt="" class="fn__svg"></span>
<span class="text">Log Out</span>
</a>
</li>
</ul>
</div>
<!-- !#3 navigation group -->
</div>
<!-- !content (left panel) -->
</div>
<!-- !LEFT PANEL -->
<!-- CONTENT -->
<div class="techwave_fn_content">
<!-- PAGE (all pages go inside this div) -->
<div class="techwave_fn_page">
<!-- AI Chat Bot Page -->
<div class="techwave_fn_aichatbot_page fn__chatbot">
<div class="chat__page">
<div class="font__trigger">
<span></span>
</div>
<div class="fn__title_holder">
<div class="container">
<!-- Active chat title -->
<h1 class="title">Chat Bot Definition</h1>
<!-- !Active chat title -->
</div>
</div>
<div class="container">
<div class="chat__list">
<div id="chat0" class="chat__item"></div>
<div class="chat__item active" id="chat1">
<div class="chat__box bot__chat">
<div class="author"><span>Bot</span></div>
<div class="chat">
<div class="fn__animated_text"><p>{{greet}}</p></div>
</div>
</div>
</div>
</div>
</div>
<div class="chat__comment">
<div class="container">
<div class="fn__chat_comment">
<textarea rows="1" class="fn__hidden_textarea" tabindex="-1"></textarea>
<textarea rows="1" placeholder="Send a message..." id="user_input"></textarea>
<button onclick="sendMessage()"><img src="desine/svg/enter.svg" alt="" class="fn__svg"></button>
</div>
</div>
</div>
<script>
function sendMessage() {
var user_input = document.getElementById("user_input").value;
if (user_input.trim() !== "") {
// Display user's message immediately
addChatMessage(user_input, "User");
document.getElementById("user_input").value = "";
var xhr = new XMLHttpRequest();
xhr.open("POST", "/get_response", true);
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.onreadystatechange = function() {
if (xhr.readyState === 4 && xhr.status === 200) {
var response_text = xhr.responseText;
// Display bot's response
addChatMessage2(response_text, "Bot");
}
};
xhr.send("user_input=" + user_input);
}
}
function addChatMessage(message, author) {
var chatItem = document.createElement("div");
chatItem.className = "chat__box your__chat";
var authorElement = document.createElement("div");
authorElement.className = "author";
authorElement.innerHTML = "<span>{{account_name}}</span>";
var chatElement = document.createElement("div");
chatElement.className = "chat";
chatElement.innerHTML = "<p>" + message + "</p>";
chatItem.appendChild(authorElement);
chatItem.appendChild(chatElement);
document.getElementById("chat1").appendChild(chatItem);
}
function addChatMessage2(message, author) {
var chatItem = document.createElement("div");
chatItem.className = "chat__box bot__chat";
var authorElement = document.createElement("div");
authorElement.className = "author";
authorElement.innerHTML = "<span>" + author + "</span>";
var chatElement = document.createElement("div");
chatElement.className = "chat";
chatItem.appendChild(authorElement);
chatItem.appendChild(chatElement);
document.getElementById("chat1").appendChild(chatItem);
var messageElement = document.createElement("p");
chatElement.appendChild(messageElement);
var index = 0;
var typingInterval = setInterval(function() {
if (index < message.length) {
if (message.charAt(index) === "<" && message.charAt(index + 1) === "b" && message.charAt(index + 2) === "r" && message.charAt(index + 3) === ">") {
messageElement.innerHTML += "<br>";
index += 3;
} else if (message.charAt(index) === "<" && message.charAt(index + 1) === "i" && message.charAt(index + 2) === "m" && message.charAt(index + 3) === "g" && message.charAt(index + 4) === " ") {
var srcStart = message.indexOf("src='", index) + 5;
var srcEnd = message.indexOf("'", srcStart);
var imageUrl = message.substring(srcStart, srcEnd);
var imageElement = document.createElement("img");
imageElement.src = imageUrl;
imageElement.className = "chat__image"; // Add CSS class for styling
messageElement.appendChild(imageElement);
index = srcEnd + 1;
} else {
messageElement.innerHTML += message.charAt(index);
}
index++;
} else {
clearInterval(typingInterval);
}
}, 30); // Adjust the delay (in milliseconds) between each character being added
}
</script>
<style>
.chat__image {
max-width: 200px; /* Adjust the maximum width as desired */
max-height: 200px; /* Adjust the maximum height as desired */
border-radius: 10px; /* Add rounded corners */
}
.chat__download-button {
display: block;
margin-top: 10px;
text-align: center;
color: #fff;
background-color: #007bff;
border: none;
border-radius: 5px;
padding: 5px 10px;
text-decoration: none;
cursor: pointer;
}
.chat__download-button:hover {
background-color: #0056b3;
}
</style> </div>
<div class="chat__sidebar">
<div class="sidebar_header">
<a href="#" class="fn__new_chat_link">
<span class="icon"></span>
<span class="text">New Chat</span>
</a>
</div>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
<!-- !AI Chat Bot Page -->
</div>
<!-- !PAGE (all pages go inside this div) -->
<!-- FOOTER (inside the content) -->
<footer class="techwave_fn_footer">
<div class="techwave_fn_footer_content">
<div class="copyright">
<p><script>document.write(new Date().getFullYear())</script>© SRBThemes</p>
</div>
<div class="menu_items">
<ul>
<li><a href="terms.html">Terms of Service</a></li>
<li><a href="privacy.html">Privacy Policy</a></li>
</ul>
</div>
</div>
</footer>
<!-- !FOOTER (inside the content) -->
</div>
<!-- !CONTENT -->
</div>
</div>
<!-- !MAIN WRAPPER -->
<!-- Scripts -->
<script type="text/javascript" src="desine/js/jquery.js?ver=1.0.0"></script>
<script type="text/javascript" src="desine/js/plugins.js?ver=1.0.0"></script>
<!--[if lt IE 10]> <script type="text/javascript" src="desine/js/ie8.js"></script> <![endif]-->
<script type="text/javascript" src="desine/js/init.js?ver=1.0.0"></script>
<!-- !Scripts -->
</body>
</html> |