lyrics-transcriber 0.53.0__py3-none-any.whl → 0.55.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lyrics_transcriber/frontend/.yarn/install-state.gz +0 -0
- lyrics_transcriber/frontend/__init__.py +25 -0
- lyrics_transcriber/frontend/package.json +1 -1
- lyrics_transcriber/review/server.py +2 -1
- {lyrics_transcriber-0.53.0.dist-info → lyrics_transcriber-0.55.1.dist-info}/METADATA +1 -1
- {lyrics_transcriber-0.53.0.dist-info → lyrics_transcriber-0.55.1.dist-info}/RECORD +9 -8
- {lyrics_transcriber-0.53.0.dist-info → lyrics_transcriber-0.55.1.dist-info}/LICENSE +0 -0
- {lyrics_transcriber-0.53.0.dist-info → lyrics_transcriber-0.55.1.dist-info}/WHEEL +0 -0
- {lyrics_transcriber-0.53.0.dist-info → lyrics_transcriber-0.55.1.dist-info}/entry_points.txt +0 -0
Binary file
|
@@ -0,0 +1,25 @@
|
|
1
|
+
"""Frontend module for lyrics transcriber web interface."""
|
2
|
+
|
3
|
+
import os
|
4
|
+
|
5
|
+
# Get the directory containing this file
|
6
|
+
__frontend_dir__ = os.path.dirname(os.path.abspath(__file__))
|
7
|
+
|
8
|
+
def get_frontend_assets_dir():
|
9
|
+
"""Get the path to the frontend assets directory.
|
10
|
+
|
11
|
+
Returns the web_assets directory if it exists (packaged version),
|
12
|
+
otherwise returns the dist directory (development version).
|
13
|
+
"""
|
14
|
+
web_assets_dir = os.path.join(__frontend_dir__, "web_assets")
|
15
|
+
dist_dir = os.path.join(__frontend_dir__, "dist")
|
16
|
+
|
17
|
+
if os.path.exists(web_assets_dir):
|
18
|
+
return web_assets_dir
|
19
|
+
elif os.path.exists(dist_dir):
|
20
|
+
return dist_dir
|
21
|
+
else:
|
22
|
+
raise FileNotFoundError(
|
23
|
+
"Frontend assets not found. Please build the frontend first with: "
|
24
|
+
"./scripts/build_frontend.sh"
|
25
|
+
)
|
@@ -58,7 +58,8 @@ class ReviewServer:
|
|
58
58
|
def _mount_frontend(self) -> None:
|
59
59
|
"""Mount the frontend static files."""
|
60
60
|
current_dir = os.path.dirname(os.path.abspath(__file__))
|
61
|
-
|
61
|
+
from lyrics_transcriber.frontend import get_frontend_assets_dir
|
62
|
+
frontend_dir = get_frontend_assets_dir()
|
62
63
|
|
63
64
|
if not os.path.exists(frontend_dir):
|
64
65
|
raise FileNotFoundError(f"Frontend assets not found at {frontend_dir}")
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: lyrics-transcriber
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.55.1
|
4
4
|
Summary: Automatically create synchronised lyrics files in ASS and MidiCo LRC formats with word-level timestamps, using Whisper and lyrics from Genius and Spotify
|
5
5
|
License: MIT
|
6
6
|
Author: Andrew Beveridge
|
@@ -22,13 +22,14 @@ lyrics_transcriber/correction/handlers/word_operations.py,sha256=410xhyO9tiqezV5
|
|
22
22
|
lyrics_transcriber/correction/phrase_analyzer.py,sha256=dtO_2LjxnPdHJM7De40mYIdHCkozwhizVVQp5XGO7x0,16962
|
23
23
|
lyrics_transcriber/correction/text_utils.py,sha256=7QHK6-PY7Rx1G1E31sWiLBw00mHorRDo-M44KMHFaZs,833
|
24
24
|
lyrics_transcriber/frontend/.gitignore,sha256=lgGIPiVpFVUNSZl9oNQLelLOWUzpF7sikLW8xmsrrqI,248
|
25
|
-
lyrics_transcriber/frontend/.yarn/install-state.gz,sha256
|
25
|
+
lyrics_transcriber/frontend/.yarn/install-state.gz,sha256=6vJFgjhE-YJdptZzzsA46Jy7BloCWmM5e9mRQSa3yiI,345896
|
26
26
|
lyrics_transcriber/frontend/.yarn/releases/yarn-4.7.0.cjs,sha256=KTYy2KCV2OpHhussV5jIPDdUSr7RftMRhqPsRUmgfAY,2765465
|
27
27
|
lyrics_transcriber/frontend/.yarnrc.yml,sha256=0hZQ1OTcPqTUNBqQeme4VFkIzrsabHNzLtc_M-wSgIM,66
|
28
28
|
lyrics_transcriber/frontend/README.md,sha256=-D6CAfKTT7Y0V3EjlZ2fMy7fyctFQ4x2TJ9vx6xtccM,1607
|
29
|
+
lyrics_transcriber/frontend/__init__.py,sha256=nW8acRSWTjXoRwGqcTU4w-__X7tMAE0iXL0uihBN3CU,836
|
29
30
|
lyrics_transcriber/frontend/eslint.config.js,sha256=3ADH23ANA4NNBKFy6nCVk65e8bx1DrVd_FIaYNnhuqA,734
|
30
31
|
lyrics_transcriber/frontend/index.html,sha256=KfqJVONzpUyPIwV73nZRiCWlwLnFWeB3z0vzxDPNudU,376
|
31
|
-
lyrics_transcriber/frontend/package.json,sha256=
|
32
|
+
lyrics_transcriber/frontend/package.json,sha256=Jhcrbko3OfV2YYc0JCkluoEFMTXq8EEqYm5gcI7O8SU,1181
|
32
33
|
lyrics_transcriber/frontend/public/vite.svg,sha256=SnSK_UQ5GLsWWRyDTEAdrjPoeGGrXbrQgRw6O0qSFPs,1497
|
33
34
|
lyrics_transcriber/frontend/src/App.tsx,sha256=f1-dp-MU8vap18eAXacwVDO5P4eE2iG9zSvjau-7NJs,6533
|
34
35
|
lyrics_transcriber/frontend/src/api.ts,sha256=UgqPc1jo8DEVgxh3_9Lyf9GBsHYpqMAqsPEE5BzTV4w,6640
|
@@ -139,7 +140,7 @@ lyrics_transcriber/output/segment_resizer.py,sha256=rrgcQC28eExSAmGnm6ytkF-E-nH4
|
|
139
140
|
lyrics_transcriber/output/subtitles.py,sha256=yQCR7YO3aitKnGRjfAtSwsdi6byfpEZgnCumJO16M2E,19085
|
140
141
|
lyrics_transcriber/output/video.py,sha256=L_KB33YM4X-EQBRcLIPO4ZqlNEcVwqTWKjaJZVtkN-4,13751
|
141
142
|
lyrics_transcriber/review/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
142
|
-
lyrics_transcriber/review/server.py,sha256=
|
143
|
+
lyrics_transcriber/review/server.py,sha256=sdmoM6GU0VlVeeCks4UxrOONN18dGDmbbcqK-4Soj7U,27480
|
143
144
|
lyrics_transcriber/storage/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
144
145
|
lyrics_transcriber/storage/dropbox.py,sha256=Dyam1ULTkoxD1X5trkZ5dGp5XhBGCn998moC8IS9-68,9804
|
145
146
|
lyrics_transcriber/transcribers/audioshake.py,sha256=hLlnRfkYldP8Y0dMCCwjYlLwqUZPAP7Xzk59G3u5bq0,8939
|
@@ -147,8 +148,8 @@ lyrics_transcriber/transcribers/base_transcriber.py,sha256=T3m4ZCwZ9Bpv6Jvb2hNcn
|
|
147
148
|
lyrics_transcriber/transcribers/whisper.py,sha256=YcCB1ic9H6zL1GS0jD0emu8-qlcH0QVEjjjYB4aLlIQ,13260
|
148
149
|
lyrics_transcriber/types.py,sha256=_YfZuU2KvZyDaYQgx5CGkbOxfR5ffdTOAx6Fk58DC14,27283
|
149
150
|
lyrics_transcriber/utils/word_utils.py,sha256=-cMGpj9UV4F6IsoDKAV2i1aiqSO8eI91HMAm_igtVMk,958
|
150
|
-
lyrics_transcriber-0.
|
151
|
-
lyrics_transcriber-0.
|
152
|
-
lyrics_transcriber-0.
|
153
|
-
lyrics_transcriber-0.
|
154
|
-
lyrics_transcriber-0.
|
151
|
+
lyrics_transcriber-0.55.1.dist-info/LICENSE,sha256=81R_4XwMZDODHD7JcZeUR8IiCU8AD7Ajl6bmwR9tYDk,1074
|
152
|
+
lyrics_transcriber-0.55.1.dist-info/METADATA,sha256=GTA3TGOFwB_wTdVB-PbbvyP2ACqgncmVR8aK1NPZ9fU,6637
|
153
|
+
lyrics_transcriber-0.55.1.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
154
|
+
lyrics_transcriber-0.55.1.dist-info/entry_points.txt,sha256=kcp-bSFkCACAEA0t166Kek0HpaJUXRo5SlF5tVrqNBU,216
|
155
|
+
lyrics_transcriber-0.55.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{lyrics_transcriber-0.53.0.dist-info → lyrics_transcriber-0.55.1.dist-info}/entry_points.txt
RENAMED
File without changes
|