hainazhu commited on
Commit
ceb0b97
·
1 Parent(s): 111fd8a

fix audio path

Browse files
Files changed (2) hide show
  1. .bash_history +0 -13
  2. app.py +1 -1
.bash_history DELETED
@@ -1,13 +0,0 @@
1
- pwd
2
- ls
3
- python3 app.py --server-port 7860
4
- python3 app.py --server-port 7860 --server-name 0.0.0.0
5
- python3 app.py --server-port 7860 --server-name 0.0.0.0
6
- curl -v https://api.gradio.app
7
- ping baidu.com
8
- grep NetworkMode
9
- ping 8.8.8.8
10
- sudo iptables -L -v -n
11
- whoami
12
- iptables -L -v -n
13
- exit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app.py CHANGED
@@ -53,7 +53,7 @@ def generate_song(description, lyric, prompt_audio=None):
53
  print("Using prompt audio for generation")
54
 
55
  # 从文件中加载示例音频
56
- audio_path = "./sample/example.mp3"
57
  audio_data, sample_rate = librosa.load(audio_path, sr=None) # 保持原始采样率
58
 
59
 
 
53
  print("Using prompt audio for generation")
54
 
55
  # 从文件中加载示例音频
56
+ audio_path = os.path.join(os.path.dirname(__file__), "sample/example.mp3")
57
  audio_data, sample_rate = librosa.load(audio_path, sr=None) # 保持原始采样率
58
 
59