Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/java/com/example/service/ImageServiceImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public String generateTextToImage(String prompt) {
HttpHeaders headers = new HttpHeaders();
headers.setContentType(MediaType.APPLICATION_JSON);

String url = "https://2b6a-124-55-57-87.ngrok-free.app/generate-image"; // FastAPI 서버의 URL
String url = "https://82d0-124-55-57-87.ngrok-free.app//generate-image"; // FastAPI 서버의 URL

String requestBody = "{\"prompt\": \"" + prompt + "\"}";

Expand Down
8 changes: 8 additions & 0 deletions src/main/resources/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@
padding: 0;
}

img {
-webkit-user-drag: none;
-khtml-user-drag: none;
-moz-user-drag: none;
-o-user-drag: none;
user-drag: none;
}

body, html {
margin: 0;
height: 100%;
Expand Down
16 changes: 8 additions & 8 deletions src/main/resources/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,14 @@ <h3>Generate New Img</h3>
<h2>Nodes:</h2>
<div id="nodesList">

<div id="node-0" class="node-box test" style="top: 400px; left: 600px;">
<div class="btn-wrap-close" onclick="deleteNode('node-0')"><button type="button" class="btn-close" aria-label="Close"></button></div>
<div class="info">
<p>Prompt:</p>
<div class="prompt">Apple on the Table, oil painting</div>
</div>
<img src="https://hongik-s3.s3.amazonaws.com/42_10_7.5.png" alt="test node1" style="height: auto;">
</div>
<!-- <div id="node-0" class="node-box test" style="top: 400px; left: 600px;">-->
<!-- <div class="btn-wrap-close" onclick="deleteNode('node-0')"><button type="button" class="btn-close" aria-label="Close"></button></div>-->
<!-- <div class="info">-->
<!-- <p>Prompt:</p>-->
<!-- <div class="prompt">Apple on the Table, oil painting</div>-->
<!-- </div>-->
<!-- <img src="https://hongik-s3.s3.amazonaws.com/42_10_7.5.png" alt="test node1" style="height: auto;">-->
<!-- </div>-->


</div> <!-- 리스트를 div로 감싸서 박스 형태로 변경 -->
Expand Down