Skip to content

Commit

Permalink
hide feedback instructions if feedback=false
Browse files Browse the repository at this point in the history
  • Loading branch information
jojortz committed Nov 22, 2023
1 parent 3afc083 commit 2ce76b8
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions pykoi/frontend/src/lib/Chatbots/RAGChatbot.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -155,17 +155,19 @@
<DownloadModal bind:showModal table="rag_table" />

<div class="ranked-feedback-container">
<div class="instructions">
<h5 class="underline bold">Vote Feedback Instructions</h5>
<p>
Ask a question to receive an answer from the chatbot. If the response is
satisfactory, click on the <span class="inline-button green">πŸ‘</span>
button. If the response is not satisfactory, click on the
<span class="inline-button red">πŸ‘Ž</span> button.
</p>
<button on:click={handleDownloadClick}>Download Data</button>
</div>
<div class="ranked-chat">
{#if feedback}
<div class="instructions">
<h5 class="underline bold">Vote Feedback Instructions</h5>
<p>
Ask a question to receive an answer from the chatbot. If the response is
satisfactory, click on the <span class="inline-button green">πŸ‘</span>
button. If the response is not satisfactory, click on the
<span class="inline-button red">πŸ‘Ž</span> button.
</p>
<button on:click={handleDownloadClick}>Download Data</button>
</div>
{/if}
<div class="ranked-chat" style:grid-column={feedback ? "span 1" : "span 2"}>
<section class="chatbox">
<div class="chat-log">
{#each $chatLog as message, index (index)}
Expand Down Expand Up @@ -235,7 +237,7 @@
height: 100vh;
display: grid;
grid-template-columns: 100%;
grid-template-rows: 80% 20%;
grid-template-rows: 65% 35%;
}
.message {
Expand Down

0 comments on commit 2ce76b8

Please sign in to comment.