|
<!DOCTYPE html> |
|
<html lang="en"> |
|
<head> |
|
<meta charset="UTF-8"> |
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|
<title>Artwave Ai Image Creator XL Demo</title> |
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.4.1/socket.io.min.js"></script> |
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"> |
|
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous"> |
|
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap" rel="stylesheet"> |
|
<style> |
|
body { |
|
background-color: #f0f0f0; |
|
color: #333; |
|
font-family: 'Poppins', sans-serif; |
|
width: 100%; |
|
overflow-x: hidden; |
|
} |
|
html, body { |
|
overflow-x: hidden; |
|
} |
|
|
|
.form-control, |
|
.form-select { |
|
background-color: #ffffff; |
|
color: #333; |
|
border: 1px solid #ccc; |
|
border-radius: 4px; |
|
} |
|
|
|
.form-control::placeholder { |
|
color: #888; |
|
} |
|
.form-control:focus, |
|
.form-select:focus { |
|
outline: none; |
|
border-color: #333; |
|
} |
|
|
|
.btn-primary { |
|
background-color: #007bff; |
|
border: none; |
|
font-size: 1.2em; |
|
padding: 10px 20px; |
|
transition: background-color 0.3s ease; |
|
} |
|
.btn-primary:hover { |
|
background-color: #0056b3; |
|
} |
|
.btn-primary:focus { |
|
box-shadow: none; |
|
} |
|
|
|
#prompt { |
|
background-color: #ffffff; |
|
outline: 4px solid #ffffff; |
|
} |
|
|
|
#negative-prompt { |
|
background-color: #f9f9f9; |
|
border: 1px solid #e0e0e0; |
|
border-radius: 10px; |
|
outline: 3px solid #e0e0e0; |
|
} |
|
|
|
#modelLabel, |
|
#ratioLabel, |
|
#styleLabel { |
|
background-color: #007bff; |
|
color: white; |
|
border: none; |
|
padding: 6px 12px; |
|
border-radius: 4px; |
|
} |
|
|
|
.form-range { |
|
background-color: #ffffff; |
|
border: 1px solid #ccc; |
|
} |
|
|
|
.form-range::-webkit-slider-thumb { |
|
background-color: #007bff; |
|
} |
|
.form-range::-moz-range-thumb { |
|
background-color: #007bff; |
|
} |
|
.form-range::-ms-thumb { |
|
background-color: #007bff; |
|
} |
|
|
|
.input-group-div1, |
|
.input-group-div { |
|
background-color: #ffffff; |
|
padding: 10px; |
|
border: 1px solid #ccc; |
|
border-radius: 8px; |
|
transition: border-color 0.3s ease; |
|
} |
|
|
|
.input-group-div1:hover, |
|
.input-group-div:hover { |
|
border-color: #007bff; |
|
} |
|
|
|
.col-12 p { |
|
color: #007bff; |
|
font-size: 1.5em; |
|
font-weight: 600; |
|
margin-bottom: 0; |
|
animation: colorChange 10s infinite; |
|
} |
|
|
|
#imshow { |
|
display: flex; |
|
flex-wrap: wrap; |
|
gap: 10px; |
|
justify-content: center; |
|
align-items: center; |
|
padding: 20px; |
|
background-color: #ffffff; |
|
border: 1px solid #ccc; |
|
border-radius: 8px; |
|
margin-top: 20px; |
|
width: 100%; |
|
} |
|
|
|
#imshow img { |
|
max-width: 280px; |
|
margin: 0; |
|
padding: 0; |
|
border-radius: 8px; |
|
transition: transform 0.3s ease; |
|
} |
|
|
|
.floating-button { |
|
position: fixed; |
|
bottom: 30px; |
|
left: 20px; |
|
background-color: #dbdad7; |
|
color: black; |
|
padding: 15px 25px; |
|
border: none; |
|
border-radius: 10px; |
|
font-size: 13px; |
|
font-weight: bold; |
|
cursor: pointer; |
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); |
|
transition: background-color 0.3s, box-shadow 0.3s; |
|
text-decoration: none; |
|
font-family: 'Poppins', sans-serif; |
|
display: flex; |
|
align-items: center; |
|
justify-content: center; |
|
} |
|
.floating-button:hover { |
|
background-color: #dbdad7; |
|
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); |
|
} |
|
.floating-button i { |
|
margin-right: 10px; |
|
} |
|
|
|
@media screen and (max-width: 600px) { |
|
#imshow { |
|
justify-content: center; |
|
align-items: center; |
|
} |
|
#imshow img { |
|
max-width: 280px; |
|
} |
|
} |
|
|
|
#stats { |
|
color: red; |
|
} |
|
</style> |
|
</head> |
|
<body> |
|
<pre id="stats"></pre> |
|
<div class="container mt-4"> |
|
<div class="row mt-4"> |
|
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12 mb-3"> |
|
<div class="input-group-div1"> |
|
<input type="text" class="form-control" id="prompt" placeholder="Prompt" autocomplete="off"> |
|
</div> |
|
</div> |
|
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12 mb-3"> |
|
<div class="input-group-div"> |
|
<input type="text" class="form-control" id="negative-prompt" placeholder="Negative Prompt" autocomplete="off"> |
|
</div> |
|
</div> |
|
|
|
<div class="col-lg-3 col-md-3 col-sm-6 col-xs-12 mb-3"> |
|
<div class="input-group"> |
|
<label class="input-group-text me-3" for="model" id="modelLabel">Model</label> |
|
<select class="form-select" id="model" aria-label="Model Select"> |
|
<option value="rvs4">Artwave XL F1</option> |
|
|
|
</select> |
|
</div> |
|
</div> |
|
|
|
<div class="col-lg-3 col-md-3 col-sm-6 col-xs-12 mb-3"> |
|
<div class="input-group"> |
|
<label class="input-group-text me-3" id="ratioLabel" for="ratio">Image Ratio</label> |
|
<select class="form-select" id="ratio" aria-label="Ratio Select"> |
|
<option selected value="1:1">1:1 (Square)</option> |
|
<option value="16:9">16:9 (Landscape)</option> |
|
<option value="9:16">9:16 (Portrait)</option> |
|
<option value="1:2">1:2</option> |
|
<option value="4:3">4:3</option> |
|
</select> |
|
</div> |
|
</div> |
|
<div class="col-lg-3 col-md-3 col-sm-6 col-xs-12 mb-3"> |
|
<div class="input-group"> |
|
<label class="input-group-text me-3" for="style" id="styleLabel">Style</label> |
|
<select class="form-select" id="style" aria-label="Style Select"> |
|
|
|
<option value="Cinematic">Cinematic</option> |
|
<option value="Photography">Photography</option> |
|
<option value="Anime">Anime</option> |
|
<option value="Comics">Comics</option> |
|
<option value="Creative">Fantasy</option> |
|
<option value="Cartoon">Cartoon</option> |
|
<option value="3d">3D Cartoon</option> |
|
<option value="No">No Styles</option> |
|
</select> |
|
</div> |
|
</div> |
|
<div id="ranges" style="display: flex; gap: 15px; flex-wrap: wrap;"> |
|
<div class="stepsRange" style="display: flex; gap: 10px;"> |
|
<label for="stepsRange" class="form-label">Steps: <p style="display: inline;" id="stepValue">30</p></label> |
|
<input type="range" class="form-range" id="stepsRange" style="width: 200px; padding-top: 12px;" min="4" max="100" value="30"> |
|
</div> |
|
<div class="guidenceRange" style="display: flex; gap: 10px;"> |
|
<label for="stepsRange" class="form-label">Guidance: <p style="display: inline;" id="guidenceValue">3</p></label> |
|
<input type="range" class="form-range" id="guidenceRange" style="width: 200px; padding-top: 12px;" min="2" max="20" value="3" step="0.1"> |
|
</div> |
|
</div> |
|
<div class="col-12 text-center mt-4"> |
|
<button type="button" class="btn btn-primary w-90" id="btn">Generate Image (2 Images)</button> |
|
</div> |
|
</div> |
|
<div class="container mt-4" id="cont4"> |
|
<div id="imshow"></div> |
|
</div> |
|
</div> |
|
<br> |
|
<a href="https://discord.com/invite/qq27GRjZ" class="floating-button" target="_blank"> |
|
<i class="fab fa-discord"></i>Discord |
|
</a> |
|
|
|
<br> |
|
<script> |
|
document.getElementById('prompt').addEventListener('mouseover', () => { |
|
document.getElementById('prompt').placeholder = 'A Cat Wearing Purple Hoodie'; |
|
}); |
|
document.getElementById('prompt').addEventListener('mouseout', () => { |
|
document.getElementById('prompt').placeholder = 'Enter Your Prompt'; |
|
}); |
|
document.getElementById('prompt').addEventListener('input', function() { |
|
this.style.color = '#333'; |
|
}); |
|
document.getElementById('negative-prompt').addEventListener('input', function() { |
|
this.style.color = '#007bff'; |
|
}); |
|
</script> |
|
|
|
<script src="{{ url_for('static', filename='models.js') }}"></script> |
|
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script> |
|
</body> |
|
</html> |