Gapeleon commited on
Commit
d54f19d
·
verified ·
1 Parent(s): 89fbaa3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -14,7 +14,7 @@ try:
14
  except ImportError as e:
15
  print(f"Error importing SNAC: {e}")
16
  # Raise a more informative error if SNAC isn't installed
17
- raise ImportError("Could not import SNAC. Make sure 'snac-codec' is listed in requirements.txt and installed correctly.") from e
18
 
19
  # --- Configuration ---
20
  TARGET_SR = 24000 # SNAC operates at 24kHz
@@ -141,8 +141,6 @@ def process_audio(audio_filepath):
141
 
142
  # --- Gradio Interface ---
143
  DESCRIPTION = """
144
- # SNAC Audio Codec Demo (24kHz)
145
-
146
  This Space demonstrates the **SNAC (Scalable Neural Audio Codec)** model (`hubertsiuzdak/snac_24khz`).
147
  1. Upload an audio file (wav, mp3, flac, etc.).
148
  2. The audio will be automatically resampled to 24kHz if needed.
 
14
  except ImportError as e:
15
  print(f"Error importing SNAC: {e}")
16
  # Raise a more informative error if SNAC isn't installed
17
+ raise ImportError("Could not import SNAC. Make sure 'snac' is listed in requirements.txt and installed correctly.") from e
18
 
19
  # --- Configuration ---
20
  TARGET_SR = 24000 # SNAC operates at 24kHz
 
141
 
142
  # --- Gradio Interface ---
143
  DESCRIPTION = """
 
 
144
  This Space demonstrates the **SNAC (Scalable Neural Audio Codec)** model (`hubertsiuzdak/snac_24khz`).
145
  1. Upload an audio file (wav, mp3, flac, etc.).
146
  2. The audio will be automatically resampled to 24kHz if needed.