urwebsiteaz-ux commited on
Commit
d3752b1
Β·
1 Parent(s): ba02ef6

fix: slim deps, add packages.txt, drop runtime.txt, fix launch() binding

Browse files
Files changed (5) hide show
  1. README.md +1 -1
  2. app.py +5 -1
  3. packages.txt +1 -0
  4. requirements.txt +9 -17
  5. runtime.txt +0 -1
README.md CHANGED
@@ -12,4 +12,4 @@ suggested_hardware: t4-small
12
  short_description: Singing-voice lyrics transcription via fine-tuned Whisper.
13
  ---
14
 
15
- See [GitHub](https://github.com/ram.duvvuri/autolyrics) for the full story.
 
12
  short_description: Singing-voice lyrics transcription via fine-tuned Whisper.
13
  ---
14
 
15
+ See [GitHub](https://github.com/ramduvvuri/autolyrics) for the full story.
app.py CHANGED
@@ -158,4 +158,8 @@ with gr.Blocks(theme=THEME, css=CSS, title="AUTOLYRICS") as demo:
158
  outputs=[base_out, ft_out, base_meta, ft_meta, meta],
159
  )
160
 
161
- demo.queue(max_size=12).launch()
 
 
 
 
 
158
  outputs=[base_out, ft_out, base_meta, ft_meta, meta],
159
  )
160
 
161
+ demo.queue(max_size=12).launch(
162
+ server_name="0.0.0.0", # Required: HF Spaces proxy expects this binding
163
+ server_port=7860, # HF Spaces standard port
164
+ show_error=True, # Surface tracebacks in the UI during debugging
165
+ )
packages.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ ffmpeg
requirements.txt CHANGED
@@ -1,19 +1,11 @@
1
- # ── Core ML stack ──────────────────────────────────────────────────────────
2
- # Remove +cpu suffix if the Space is always guaranteed a T4 GPU
3
- torch==2.3.1
4
- torchaudio==2.3.1
5
- transformers==4.47.1 # first release stable on Python 3.13; full Whisper support
6
  peft==0.13.2
7
- accelerate==0.34.2 # compatible with transformers 4.47.x
8
-
9
- # ── Gradio stack ───────────────────────────────────────────────────────────
10
  gradio==5.6.0
11
- pydantic==2.10.6 # CRITICAL: pins below pydantic 2.11 which breaks gradio_client 1.4.x
12
- # (gradio_client get_type: "if const in schema" crashes on bool)
13
-
14
- # ── HuggingFace ────────────────────────────────────────────────────────────
15
- huggingface_hub==0.26.3 # minimum required by peft 0.13.2 (0.25.2 is too old)
16
-
17
- # ── Audio ──────────────────────────────────────────────────────────────────
18
- soundfile==0.12.1
19
- sentencepiece==0.2.0
 
1
+ torch==2.7.1
2
+ torchaudio==2.7.1
3
+ transformers==4.47.1
 
 
4
  peft==0.13.2
 
 
 
5
  gradio==5.6.0
6
+ gradio_client==1.4.3
7
+ pydantic==2.10.6
8
+ huggingface_hub==0.26.3
9
+ accelerate==1.1.1
10
+ sentencepiece==0.2.0
11
+ soundfile==0.12.1
 
 
 
runtime.txt DELETED
@@ -1 +0,0 @@
1
- python-3.10