lollms-webui/templates/chat.html

128 lines
7.6 KiB
HTML
Raw Normal View History

2023-04-06 19:12:49 +00:00
<!DOCTYPE html>
2023-04-11 21:10:33 +00:00
<html class="mode-dark">
2023-04-06 19:12:49 +00:00
<head>
2023-04-08 16:00:02 +00:00
<meta charset="utf-8">
2023-04-06 19:12:49 +00:00
<title>GPT4All - WEBUI</title>
2023-04-11 20:56:15 +00:00
<link rel="stylesheet" href="{{ url_for('static', filename='css/tailwindcss.min.css') }}">
2023-04-06 19:12:49 +00:00
<link rel="stylesheet" href="{{ url_for('static', filename='css/chat.css') }}">
</head>
2023-04-11 22:10:36 +00:00
<body class="w-screen h-500 bg-primary text-gray-400 flex flex-col bg-blue-1000">
<div class="w-full h-25 border-b border-accent bg-tertiary text-2xl font-bold flex justify-between items-center px-6">
2023-04-06 19:12:49 +00:00
<div class="w-12 h-12"><img src="{{ url_for('static', filename='images/icon.png') }}"></div>
<h1>GPT4All - WEBUI</h1>
</div>
<div class="border-b border-gray-200">
<ul class="flex border-b border-gray-200">
<li class="mr-1">
<a href="#main" class="bg-gray-100 text-gray-700 py-2 px-4 rounded-t-md font-medium hover:text-gray-900">Main</a>
</li>
<li class="mr-1">
<a href="#settings" class="bg-gray-100 text-gray-700 py-2 px-4 rounded-t-md font-medium hover:text-gray-900">Settings</a>
</li>
2023-04-11 20:56:15 +00:00
<li class="mr-1">
<a href="#extensions" class="bg-gray-100 text-gray-700 py-2 px-4 rounded-t-md font-medium hover:text-gray-900">Extensions</a>
</li>
<li class="mr-1">
<a href="#training" class="bg-gray-100 text-gray-700 py-2 px-4 rounded-t-md font-medium hover:text-gray-900">Training</a>
</li>
<li class="mr-1">
<a href="#help" class="bg-gray-100 text-gray-700 py-2 px-4 rounded-t-md font-medium hover:text-gray-900" id="help-link">Help</a>
</li>
</ul>
</div>
2023-04-11 21:16:18 +00:00
<div id="main" class="tab-pane bg-gray-800">
2023-04-11 20:56:15 +00:00
<div class="grid grid-cols-3 gap-4">
2023-04-11 22:10:36 +00:00
<section class="col-span-1 bg-gray-800 overflow-y-auto">
<section id="action-buttons" class="bg-gray-800 px-4 py-4">
<button id="new-discussion-btn" class="px-4 py-4 rounded hover:bg-gray-600 ">
<img src="/static/images/new_message.png" class="w-10 h-10">
</button>
<button value="Export" id="export-button" class="px-4 py-4 rounded hover:bg-gray-600">
<img src="/static/images/export_database.png" class="w-10 h-10">
</button>
<button value="Export" id="export-discussion-button" class="px-4 py-4 rounded hover:bg-gray-600">
<img src="/static/images/export_discussion.png" class="w-10 h-10">
</button>
</section>
<div>
<h1 class="font-bold font-large">Discussions</h1>
</div>
<div id="discussions-list" class="overflow-y-auto">
</div>
</section>
<section class="col-span-2 bg-gray-400">
<div id="chat-window" class="overflow-y-auto">
</div>
2023-04-10 19:17:09 +00:00
</section>
2023-04-11 20:56:15 +00:00
</div>
2023-04-11 22:10:36 +00:00
<form id="chat-form" class="flex w-full mt-auto">
<input type="text" id="user-input" placeholder="Type your message..." class="bg-secondary my-1 mx-1 outline-none drop-shadow-sm w-full rounded-md p-2">
<input type="submit" value="Send" id="submit-input" class="my-1 mx-1 outline-none px-4 bg-accent text-black rounded-md hover:bg-[#7ba0ea] active:bg-[#3d73e1] transition-colors ease-in-out">
<div id="wait-animation" style="display: none;" class="lds-facebook bg-secondary my-1 mx-1 outline-none drop-shadow-sm w-full rounded-md p-2"><div></div><div></div><div></div></div>
</form>
2023-04-10 19:17:09 +00:00
</div>
2023-04-11 20:56:15 +00:00
<div class="tab-pane" id="settings" style="display: none;">
<div class="h-96 overflow-y-auto">
2023-04-11 22:10:36 +00:00
<form id="model-params-form" class="bg-white shadow-md rounded px-8 py-8 pt-6 pb-8 mb-4">
<div class="mb-4">
<label class="block text-gray-700 font-bold mb-2" for="model">Model</label>
<select class="bg-gray-700 shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" id="model" name="model" value="gpt4all-lora-quantized.bin">
</select>
</div>
<div class="mb-4">
<label class="block text-gray-700 font-bold mb-2" for="seed">Seed</label>
<input class="bg-gray-700 shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline" id="seed" type="text" name="seed" value="0">
</div>
<div class="mb-4">
<label class="block text-gray-700 font-bold mb-2" for="temp">Temperature</label>
2023-04-10 19:17:09 +00:00
<input class="bg-gray-700 slider absolute top-0 w-full opacity-0" id="temp" type="range" min="0" max="1" step="0.1" value="0.1" name="temp">
<p id="slider-value">0.1</p>
</div>
<div class="mb-4">
<label class="block text-gray-700 font-bold mb-2" for="n-predict">N Predict</label>
2023-04-10 19:17:09 +00:00
<input class="bg-gray-700 slider absolute top-0 w-full opacity-0" id="n-predict" type="range" min="0" max="2048" step="1" value="256" name="n-predict">
</div>
<div class="mb-4">
<label class="block text-gray-700 font-bold mb-2" for="top-k">Top K</label>
2023-04-10 19:17:09 +00:00
<input class="bg-gray-700 slider absolute top-0 w-full opacity-0" id="top-k" type="range" min="0" max="100" step="1" value="40" name="top-k">
</div>
<div class="mb-4">
<label class="block text-gray-700 font-bold mb-2" for="top-p">Top P</label>
2023-04-10 19:17:09 +00:00
<input class="bg-gray-700 slider absolute top-0 w-full opacity-0" id="top-p" type="range" min="0" max="100" step="1" value="40" name="top-p">
</div>
<div class="mb-4">
<label class="block text-gray-700 font-bold mb-2" for="repeat-penalty">Repeat penalty</label>
2023-04-10 19:17:09 +00:00
<input class="bg-gray-700 slider absolute top-0 w-full opacity-0" id="repeat-penalty" type="range" min="0" max="100" step="1" value="40" name="repeat-penalty">
</div>
<div class="mb-4">
<label class="block text-gray-700 font-bold mb-2" for="repeat-last-n">Repeat penalty</label>
2023-04-10 19:17:09 +00:00
<input class="bg-gray-700 slider absolute top-0 w-full opacity-0" id="repeat-last-n" type="range" min="0" max="100" step="1" value="40" name="repeat-last-n">
</div>
<div class="mb-4">
<button type="submit" id="submit-model-params" class="my-1 mx-1 outline-none px-4 bg-accent text-black rounded-md hover:bg-[#7ba0ea] active:bg-[#3d73e1] transition-colors ease-in-out">Update parameters</button>
</div>
</form>
</div>
</div>
2023-04-11 20:56:15 +00:00
<div class="tab-pane" id="extensions" style="display: none;">
</div>
<div class="tab-pane" id="training" style="display: none;">
</div>
<div class="tab-pane" id="help" style="display: none;">
2023-04-06 19:12:49 +00:00
2023-04-11 20:56:15 +00:00
</div>
2023-04-06 19:12:49 +00:00
<footer class="border-t border-accent flex">
</footer>
<script src="{{ url_for('static', filename='js/marked.min.js') }}"></script>
<script src="{{ url_for('static', filename='js/chat.js') }}"></script>
<script src="{{ url_for('static', filename='js/discussions.js') }}"></script>
<script src="{{ url_for('static', filename='js/settings.js') }}"></script>
<script src="{{ url_for('static', filename='js/db_export.js') }}"></script>
<script src="{{ url_for('static', filename='js/tabs.js') }}"></script>
2023-04-11 20:56:15 +00:00
<script src="{{ url_for('static', filename='js/help.js') }}"></script>
2023-04-06 19:12:49 +00:00
</body>
</html>