Spaces:
Running
Running
File size: 2,978 Bytes
46b2877 141257c 46b2877 141257c 46b2877 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="stylesheet" href="style.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>YouTube Transcript Summarizer</title>
</head>
<body>
<div class="container">
<header>
<h1>π¬ YouTube Transcript Summarizer</h1>
<p>Paste a YouTube URL and get an AI-powered summary using π€ Transformers.js</p>
</header>
<main>
<div class="input-section">
<div class="input-group">
<input
type="text"
id="video-url"
placeholder="https://www.youtube.com/watch?v=VIDEO_ID"
value="https://www.youtube.com/watch?v=jNQXAC9IVRw"
/>
<select id="language-select">
<option value="en">English</option>
<option value="es">Spanish</option>
<option value="fr">French</option>
<option value="de">German</option>
<option value="it">Italian</option>
<option value="pt">Portuguese</option>
<option value="ru">Russian</option>
<option value="ja">Japanese</option>
<option value="ko">Korean</option>
<option value="zh">Chinese</option>
</select>
</div>
<button id="summarize-btn">π― Generate Summary</button>
</div>
<div class="examples">
<span>Quick examples:</span>
<button class="example-btn" data-url="https://www.youtube.com/watch?v=jNQXAC9IVRw">Me at the zoo</button>
<button class="example-btn" data-url="https://www.youtube.com/watch?v=9bZkp7q19f0">Gangnam Style</button>
<button class="example-btn" data-url="https://www.youtube.com/watch?v=dQw4w9WgXcQ">Never Gonna Give You Up</button>
<button class="example-btn" data-url="https://www.youtube.com/watch?v=8S0FDjFBj8o">TED Talk</button>
</div>
<div id="status" class="status">Loading model...</div>
<div id="output-container">
<div id="output" class="output-placeholder">
<p>π Your summarized transcript will appear here...</p>
</div>
</div>
<div id="stats" class="stats" style="display: none;"></div>
</main>
<footer>
<p>Powered by <a href="https://huggingface.co/docs/transformers.js" target="_blank">Transformers.js</a> & <a href="https://github.com/jdepoix/youtube-transcript-api" target="_blank">YouTube Transcript API</a></p>
</footer>
</div>
<script src="index.js" type="module"></script>
</body>
</html> |