MukulRay commited on
Commit
9e8183a
·
1 Parent(s): fa89d46

Add audioop-lts polyfill: Python 3.13 removed stdlib audioop, pydub still needs it

Browse files
Files changed (1) hide show
  1. requirements.txt +5 -0
requirements.txt CHANGED
@@ -7,6 +7,11 @@
7
  # Demo UI
8
  gradio==4.44.1
9
 
 
 
 
 
 
10
  # Hybrid route classifier (TF-IDF + logistic regression)
11
  scikit-learn==1.8.0
12
  scipy==1.17.1
 
7
  # Demo UI
8
  gradio==4.44.1
9
 
10
+ # Polyfill for stdlib `audioop`, removed in Python 3.13 (PEP 594).
11
+ # pydub (a gradio dep) still imports it, so without this the Space crashes
12
+ # at import time. Conditional install: only needed on 3.13+.
13
+ audioop-lts; python_version >= "3.13"
14
+
15
  # Hybrid route classifier (TF-IDF + logistic regression)
16
  scikit-learn==1.8.0
17
  scipy==1.17.1