-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
79 lines (58 loc) · 2.22 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>(Vanilla) Pieces Copilot Example</title>
</head>
<!-- Abstract this to a css file soon -->
<style>
.vertical {
display: flex;
flex-direction: column;
max-width: 550px;
}
.mini-spacing {
margin: 5px 0;
}
#model-downloads-container {
margin: 5px 0;
}
</style>
<body>
<h1>Pieces Copilot</h1>
<div class="vertical">
<h4 class="mini-spacer">Send a message to the Pieces Copilot with the selected model. Your response to your question will be above the chat text:</h4>
<div id="chat-output"></div>
<textarea id="chat-input"></textarea>
<label for="chat-input"></label>
<button id='send-chat-btn'>Send Chat</button>
<script src="./dist/index.js"></script>
<!-- these are the new radio buttons here for controlling model selection -->
<form>
<h4 class="mini-spacing"> To choose your model, select a radio dial:</h4>
<input type="radio" name="models" id="gpt-35-radio" checked>
<label for="gpt-35-radio">GPT 3.5</label>
<input type="radio" name="models" id="gpt-4-radio">
<label for="gpt-4-radio">GPT 4</label>
<input type="radio" name="models" id="llama2-7b-cpu-radio">
<label for="llama2-7b-cpu-radio">Llama2 7B (CPU)</label>
<input type="radio" name="models" id="llama2-7b-gpu-radio">
<label for="llama2-7b-gpu-radio">Llama2 7B (GPU)</label>
<input type="radio" name="models" id="mistral-cpu-radio">
<label for="mistral-cpu-radio">Mistral 7B (CPU)</label>
<input type="radio" name="models" id="mistral-gpu-radio">
<label for="mistral-gpu-radio">Mistral 7B (GPU)</label>
<input type="radio" name="models" id="phi2-cpu-radio">
<label for="phi2-cpu-radio">Phi-2 (CPU)</label>
<input type="radio" name="models" id="phi2-gpu-radio">
<label for="phi2-gpu-radio">Phi-2 (GPU)</label>
</form>
<h4 class="mini-spacing">Model Downloads & Status:</h4>
<div id="model-downloads-container"></div>
<h4 class="mini-spacer">Manage Your Context:</h4>
<button id='add-files-as-context'>Add file(s) to context</button>
<textarea id="context-input"></textarea>
<label for="context-input"></label>
<div id="context-files-added-container"></div>
</div>
</html>