FaceFeel / Frontend /index.html
Prime810's picture
Update Frontend/index.html
0148a7d verified
raw
history blame
979 Bytes
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Photo to Emoji</title>
<link rel="stylesheet" href="/static/style.css">
</head>
<body>
<h1>Photo to Emoji Converter</h1>
<video autoplay="true" id="videoElement"></video>
<br />
<!-- πŸ”„ Flip Camera button -->
<button onclick="toggleCamera()">πŸ”„ Flip Camera</button>
<button onclick="captureAndSend()">Capture & Predict</button>
<div id="capturedImagePreview" style="margin-top: 1rem;">
<h3 style="margin-bottom: 10px;">Captured Image:</h3>
<canvas id="snapshotCanvas" style="border-radius: 10px; box-shadow: 0 0 10px rgba(255,255,255,0.2);"></canvas>
</div>
<div id="emojiDisplay"></div>
<div id="emotionText"></div>
<!-- Download link -->
<a id="downloadEmoji" download="emoji.png" style="display: none;">⬇️ Download Emoji</a>
<script src="/static/scripts.js"></script>
</body>
</html>