Spaces:
Running
Running

Update Screenshot img upload. Allow request interrupt previous prompt. Allow question editable
3cb4983
<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Interview Q&A Assistant</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"/> | |
<link rel="stylesheet" href="/statics/styles.css"/> | |
<link rel="icon" type="image/png" href="/statics/icon.png"/> | |
<!-- markdown‑to‑html --> | |
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script> | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/purify.min.js"></script> | |
</head> | |
<body> | |
<main class="container"> | |
<h1>Interview Q&A Assistant</h1> | |
<p class="subtitle">🎙 Hold the button, ask your interview question, release to get an answer.<br> | |
📸 Or upload a screenshot of the question.</p> | |
<button id="record-button" class="record-btn">🎤 Hold to Ask</button> | |
<button id="screenshot-button" class="screenshot-btn">📸 Drop your Screenshot</button> | |
<input id="file-input" type="file" accept="image/*" hidden /> | |
<section class="output-section"> | |
<h2>Your Question | |
<img src="/statics/edit.png" id="edit-btn" class="edit-icon" title="Edit & re-ask"> | |
</h2> | |
<div id="question-output" class="output" contenteditable="false"></div> | |
<h2>AI Answer</h2> | |
<pre id="answer-output" class="output markdown"></pre> | |
</section> | |
</main> | |
<script src="/statics/script.js"></script> | |
</body> | |
</html> |