-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
100 lines (91 loc) · 4.77 KB
/
index.html
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html>
<html lang="hu">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Whisper UI</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-T3c6CoIi6uLrA9TneNEoa7RxnatzjcDSCmG1MXxSR1GAsXEV/Dwwykc2MPK8M2HN" crossorigin="anonymous">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container mt-5 position-relative">
<h1>Whisper UI</h1>
<div class="form-check form-switch mb-3 position-absolute top-0 end-0 m-3" id="darkModeSwitchContainer">
<input class="form-check-input" type="checkbox" role="switch" id="darkModeToggle">
</div>
<p class="description">Hangfájlok átírása az OpenAI Whisper API segítségével</p>
<div class="tabs">
<button class="tab active" data-tab="input">Input</button>
<button class="tab" data-tab="process">Process</button>
<button class="tab" data-tab="output">Output</button>
</div>
<div id="input" class="tab-content active">
<div class="mb-3">
<label for="apiKey" class="form-label">OpenAI API kulcs</label>
<input type="password" class="form-control" id="apiKey" placeholder="Írja be az OpenAI API kulcsát">
<small class="form-text text-muted">Az API kulcsot a fiókjából szerezheti be.</small>
</div>
<div class="mb-3">
<label for="audioFile" class="form-label">Hangfájl feltöltése</label>
<input type="file" class="form-control" id="audioFile" accept=".mp3, .mp4, .mpeg, .mpga, .wav, .webm, .flac, .m4a, .ogg, .oga">
<small class="form-text text-muted">Támogatott formátumok: MP3, MP4, MPEG, MPGA, WAV, WEBM, FLAC, M4A, OGG, OGA.</small>
</div>
<!-- Toggle for ChatGPT-4o Reformulation -->
<div class="form-check form-switch mb-3" id="reformulationSwitchContainer">
<input class="form-check-input" type="checkbox" role="switch" id="reformulateToggle" checked>
<label class="form-check-label" for="reformulateToggle">Formázás AI-val</label>
</div>
<button class="btn btn-primary" id="transcribeButton" disabled>Átírás</button>
</div>
<div id="process" class="tab-content">
<div class="progress-bar">
<div id="progress-bar" class="progress" style="width: 0%"></div>
</div>
<div class="stats">
<div class="stat">
<h3>Fájlméret</h3>
<p id="file-size">0 B</p>
</div>
<div class="stat">
<h3>Állapot</h3>
<p id="status">Várakozás...</p>
</div>
<div class="stat">
<h3>Feldolgozott darabok</h3>
<p id="processed-chunks">0 / 0</p>
</div>
</div>
<label for="log">Napló</label>
<textarea id="log" readonly></textarea>
</div>
<div id="output" class="tab-content">
<div class="output-container">
<div class="output-box">
<div class="output-header">
<h3>Eredeti Szöveg</h3>
<div class="button-group">
<button class="icon-button copy-button" title="Másolás">📋</button>
<button class="icon-button fullscreen-button" title="Teljes képernyő">🔍</button>
</div>
</div>
<div id="original-output" class="result"></div>
</div>
<div class="output-box">
<div class="output-header">
<h3>Formázott Szöveg</h3>
<div class="button-group">
<button class="icon-button copy-button" title="Másolás">📋</button>
<button class="icon-button fullscreen-button" title="Teljes képernyő">🔍</button>
</div>
</div>
<div id="formatted-output" class="result"></div>
</div>
</div>
</div>
</div>
<!-- Toast container -->
<div id="toast-container" class="toast-container position-fixed bottom-0 end-0 p-3"></div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL" crossorigin="anonymous"></script>
<script src="script.js"></script>
</body>
</html>