webui: add chat-style prompt

@ref https://github.com/ggerganov/llama.cpp/issues/771#issuecomment-1499900809
This commit is contained in:
mappu 2023-04-08 19:22:42 +12:00
parent 8e378c0734
commit 527fc92240

View File

@ -42,7 +42,11 @@ button {
</style>
<body>
<h2>🦙 ` + html.EscapeString(AppTitle) + `</h2>
<textarea id="main" autofocus></textarea>
<textarea id="main" autofocus>A chat between a curious human and an artificial intelligence assistant.
The assistant gives helpful, detailed, and polite answers to the human's questions.
### Human: What is the capital city of New Zealand?
### Assistant:</textarea>
<button id="generate"> Generate</button>
<button id="interrupt" disabled> Interrupt</button>
<span id="state"></span>