Delete static
Browse files- static/index.html +0 -59
- static/jquery.js +0 -0
static/index.html
DELETED
|
@@ -1,59 +0,0 @@
|
|
| 1 |
-
<!DOCTYPE html>
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
<head>
|
| 5 |
-
<meta charset="utf-8">
|
| 6 |
-
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1">
|
| 7 |
-
<title></title>
|
| 8 |
-
<script src="./jquery">
|
| 9 |
-
|
| 10 |
-
</script>
|
| 11 |
-
<script>
|
| 12 |
-
function txt2images() {
|
| 13 |
-
var size = $("#size").val();
|
| 14 |
-
body = {
|
| 15 |
-
"prompt": $("#input").val(),
|
| 16 |
-
"size": size
|
| 17 |
-
}
|
| 18 |
-
var qq = "";
|
| 19 |
-
$.ajax({
|
| 20 |
-
url: './txt2pic',
|
| 21 |
-
data: body,
|
| 22 |
-
type: 'post',
|
| 23 |
-
async: false,
|
| 24 |
-
success: function (data, textStatus, jqXHR) {
|
| 25 |
-
$("#show").attr("src", data);
|
| 26 |
-
}
|
| 27 |
-
})
|
| 28 |
-
}
|
| 29 |
-
</script>
|
| 30 |
-
</head>
|
| 31 |
-
|
| 32 |
-
<body>
|
| 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>
|
| 57 |
-
</body>
|
| 58 |
-
|
| 59 |
-
</html>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static/jquery.js
DELETED
|
The diff for this file is too large to render.
See raw diff
|
|
|