sleeper371 commited on
Commit
1b6205a
·
1 Parent(s): 37a9836

add hf space config

Browse files
Files changed (2) hide show
  1. README.md +25 -0
  2. core/memory/common.py +1 -1
README.md CHANGED
@@ -1,3 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  # Generate Audio from text and clone voice with BARK
2
 
3
  You can generate audio from text with natural sounding voice and clone any voice (not perfect).
 
1
+ ---
2
+ title: BARK Text to Audio with Batch Inference
3
+ emoji: 🪄
4
+ colorFrom: purple
5
+ colorTo: pink
6
+ sdk: gradio
7
+ python_version: "3.12"
8
+ sdk_version: "5.23.3"
9
+ suggested_hardware: cpu-upgrade
10
+ suggested_storage: small
11
+ app_file: app.py
12
+ short_description: Generate natural sounding speech audio from text
13
+ pinned: true
14
+ startup_duration_timeout: 45m
15
+ # models:
16
+ # - mistralai/Mistral-7B-Instruct-v0.2
17
+ # - stabilityai/stable-diffusion-xl-base-1.0
18
+ tags:
19
+ - text-to-audio
20
+ - gradio
21
+ - bark
22
+ preload_from_hub:
23
+ - suno/bark coarse.pt coarse_2.pt fine.pt fine_2.pt text.pt text_2.pt
24
+ ---
25
+
26
  # Generate Audio from text and clone voice with BARK
27
 
28
  You can generate audio from text with natural sounding voice and clone any voice (not perfect).
core/memory/common.py CHANGED
@@ -57,7 +57,7 @@ class EnvVars:
57
  "GLOBAL_ENABLE_MPS": True, # Enable PyTorch's Metal Performance Shaders on Apple Silicon
58
  "AUDIO_SAMPLE_RATE": 24000, # Default sample rate for audio processing (in Hz)
59
  "SUNO_USE_SMALL_MODELS": True, # Use smaller Bark models if True
60
- "CACHE_DIR": "./models",
61
  "LOG_LEVEL": LogLevel.INFO, # Default logging level
62
  "USE_GPU": True, # Whether to prioritize GPU/MPS over CPU
63
  }
 
57
  "GLOBAL_ENABLE_MPS": True, # Enable PyTorch's Metal Performance Shaders on Apple Silicon
58
  "AUDIO_SAMPLE_RATE": 24000, # Default sample rate for audio processing (in Hz)
59
  "SUNO_USE_SMALL_MODELS": True, # Use smaller Bark models if True
60
+ "CACHE_DIR": "~/.cache/huggingface/hub",
61
  "LOG_LEVEL": LogLevel.INFO, # Default logging level
62
  "USE_GPU": True, # Whether to prioritize GPU/MPS over CPU
63
  }