Spaces:
Starting
on
T4
Starting
on
T4
Daniel Fried
commited on
Commit
·
45c00cf
1
Parent(s):
0b6b3f9
multiline and message
Browse files- static/index.html +10 -10
static/index.html
CHANGED
@@ -163,12 +163,12 @@ label {
|
|
163 |
<output class='a' id="temp_slider_output">0.6</output>
|
164 |
</div>
|
165 |
<div id="buttons">
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
</div>
|
173 |
</div>
|
174 |
<div id="edit-container" class="card">
|
@@ -201,14 +201,14 @@ label {
|
|
201 |
</div>
|
202 |
<div id="loader_holder_super" class="card">
|
203 |
<h1>Messages</h1>
|
|
|
|
|
204 |
<div id="loader_holder">
|
205 |
<div class="loader"></div>
|
206 |
<div>
|
207 |
Generation queued, please wait...
|
208 |
</div>
|
209 |
</div>
|
210 |
-
<div id="error"></div>
|
211 |
-
<div id="warning"></div>
|
212 |
</div>
|
213 |
<div id="info" class="card">
|
214 |
<h1 id="debug-info">More Info</h3>
|
@@ -242,8 +242,8 @@ var EXAMPLES = {
|
|
242 |
"python-infill2": {
|
243 |
"prompt":
|
244 |
`<| file ext=.py |>
|
245 |
-
|
246 |
from collections import Counter
|
|
|
247 |
def <infill>
|
248 |
"""Count the number of occurrences of each word in the file."""
|
249 |
<infill>
|
@@ -541,7 +541,7 @@ function make_generate_listener(url) {
|
|
541 |
}
|
542 |
} else {
|
543 |
set_text(receive_data["text"])
|
544 |
-
$("#error").text(receive_data["
|
545 |
}
|
546 |
}
|
547 |
|
|
|
163 |
<output class='a' id="temp_slider_output">0.6</output>
|
164 |
</div>
|
165 |
<div id="buttons">
|
166 |
+
<br>
|
167 |
+
<input type="button" value="Extend" id="extend-form-button" />
|
168 |
+
<input type="button" value="Infill" id="infill-form-button" />
|
169 |
+
<br>
|
170 |
+
<br>
|
171 |
+
<input type="button" value="Add <infill> mask" id="insert-mask-button" title="add the infill marker at cursor or selection" />
|
172 |
</div>
|
173 |
</div>
|
174 |
<div id="edit-container" class="card">
|
|
|
201 |
</div>
|
202 |
<div id="loader_holder_super" class="card">
|
203 |
<h1>Messages</h1>
|
204 |
+
<div id="error"></div>
|
205 |
+
<div id="warning"></div>
|
206 |
<div id="loader_holder">
|
207 |
<div class="loader"></div>
|
208 |
<div>
|
209 |
Generation queued, please wait...
|
210 |
</div>
|
211 |
</div>
|
|
|
|
|
212 |
</div>
|
213 |
<div id="info" class="card">
|
214 |
<h1 id="debug-info">More Info</h3>
|
|
|
242 |
"python-infill2": {
|
243 |
"prompt":
|
244 |
`<| file ext=.py |>
|
|
|
245 |
from collections import Counter
|
246 |
+
|
247 |
def <infill>
|
248 |
"""Count the number of occurrences of each word in the file."""
|
249 |
<infill>
|
|
|
541 |
}
|
542 |
} else {
|
543 |
set_text(receive_data["text"])
|
544 |
+
$("#error").text(receive_data["message"]);
|
545 |
}
|
546 |
}
|
547 |
|