- static/index.html +6 -4
static/index.html
CHANGED
@@ -21,7 +21,7 @@
|
|
21 |
data: body,
|
22 |
type: 'post',
|
23 |
async: false,
|
24 |
-
success: function(data, textStatus, jqXHR) {
|
25 |
$("#show").attr("src", data);
|
26 |
}
|
27 |
})
|
@@ -33,22 +33,24 @@
|
|
33 |
<table>
|
34 |
<tr>
|
35 |
<td>输入提示词:</td>
|
36 |
-
<td colspan="2"><textarea rows="
|
37 |
</tr>
|
38 |
<tr>
|
39 |
<td>选择尺寸:</td>
|
40 |
<td><select id="size">
|
41 |
<option>2560x1440</option>
|
|
|
42 |
<option>1024x1024</option>
|
43 |
<option>512x512</option>
|
44 |
<option selected>256x256</option>
|
45 |
-
</select
|
|
|
46 |
<td>
|
47 |
<button value="提交" onclick="txt2images()">提交</button>
|
48 |
</td>
|
49 |
</tr>
|
50 |
<tr>
|
51 |
-
<td colspan="4"><img id="show" height="512" width="512"
|
52 |
|
53 |
</tr>
|
54 |
</table>
|
|
|
21 |
data: body,
|
22 |
type: 'post',
|
23 |
async: false,
|
24 |
+
success: function (data, textStatus, jqXHR) {
|
25 |
$("#show").attr("src", data);
|
26 |
}
|
27 |
})
|
|
|
33 |
<table>
|
34 |
<tr>
|
35 |
<td>输入提示词:</td>
|
36 |
+
<td colspan="2"><textarea rows="2" cols="30" id="input">汽车</textarea></td>
|
37 |
</tr>
|
38 |
<tr>
|
39 |
<td>选择尺寸:</td>
|
40 |
<td><select id="size">
|
41 |
<option>2560x1440</option>
|
42 |
+
<option>1920x1080</option>
|
43 |
<option>1024x1024</option>
|
44 |
<option>512x512</option>
|
45 |
<option selected>256x256</option>
|
46 |
+
</select>提交之后等待几秒出图
|
47 |
+
</td>
|
48 |
<td>
|
49 |
<button value="提交" onclick="txt2images()">提交</button>
|
50 |
</td>
|
51 |
</tr>
|
52 |
<tr>
|
53 |
+
<td colspan="4"><img id="show" height="512" width="512"/></td>
|
54 |
|
55 |
</tr>
|
56 |
</table>
|