diff --git a/src/static/css/style.css b/src/static/css/style.css index 3d796a7..f299b48 100755 --- a/src/static/css/style.css +++ b/src/static/css/style.css @@ -62,4 +62,8 @@ body { font-size: 15px; border-radius: 5px; cursor: pointer; +} + +#input_txt_box_3, #input_txt_box_4 { + width: 45px; } \ No newline at end of file diff --git a/src/static/js/const.js b/src/static/js/const.js index 8127fbd..e48db1d 100755 --- a/src/static/js/const.js +++ b/src/static/js/const.js @@ -9,4 +9,6 @@ */ const inputTxtBox1 = $('#input_txt_box_1') -const inputTxtBox2 = $('#input_txt_box_2') \ No newline at end of file +const inputTxtBox2 = $('#input_txt_box_2') +const inputTxtBox3 = $('#input_txt_box_3') +const inputTxtBox4 = $('#input_txt_box_4') \ No newline at end of file diff --git a/src/static/js/utility.js b/src/static/js/utility.js index d40de1d..b849626 100755 --- a/src/static/js/utility.js +++ b/src/static/js/utility.js @@ -8,13 +8,17 @@ - 2025-01-16/ksy : base */ -let apiRequestBody = { "prompt": "" } +let apiRequestBody = { + "prompt": "", + "downloadCount": 1 +} function generatorBtn1() { try { const apiUrl = `http://${REST_SERVER.IP}:${REST_SERVER.PORT}${DALLE3_REQUEST_URL}` apiRequestBody.prompt = inputTxtBox1.val() + apiRequestBody.downloadCount = inputTxtBox3.val() postData(apiUrl, apiRequestBody) } catch (error) { @@ -27,6 +31,7 @@ function generatorBtn2() { const apiUrl = `http://${REST_SERVER.IP}:${REST_SERVER.PORT}${IMAGEN_REQUEST_URL}` apiRequestBody.prompt = inputTxtBox2.val() + apiRequestBody.downloadCount = inputTxtBox4.val() postData(apiUrl, apiRequestBody) } catch (error) { diff --git a/src/templates/index.html b/src/templates/index.html index 4d30148..900160f 100755 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -28,6 +28,10 @@
+
+ Download Count: + +
@@ -37,6 +41,10 @@
+
+ Download Count: + +