From ca67c06c525573cb45bd1c0edafcf07be797d891 Mon Sep 17 00:00:00 2001 From: sykweon Date: Fri, 17 Jan 2025 17:50:50 +0900 Subject: [PATCH] =?UTF-8?q?edit:=20=EB=8B=A4=EC=9A=B4=EB=A1=9C=EB=93=9C=20?= =?UTF-8?q?=EA=B0=9C=EC=88=98=20=EC=9E=85=EB=A0=A5=20=EA=B8=B0=EB=8A=A5=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/static/css/style.css | 4 ++++ src/static/js/const.js | 4 +++- src/static/js/utility.js | 7 ++++++- src/templates/index.html | 8 ++++++++ 4 files changed, 21 insertions(+), 2 deletions(-) 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: + +