Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -79,7 +79,7 @@ def upload_audio():
|
|
79 |
f.write(audio_binary)
|
80 |
|
81 |
# 参照音声ファイルのパスが正しいか確認!
|
82 |
-
reference_audio = '
|
83 |
if not os.path.exists(reference_audio):
|
84 |
return jsonify({"error": "参照音声ファイルが見つかりません", "details": reference_audio}), 500
|
85 |
|
|
|
79 |
f.write(audio_binary)
|
80 |
|
81 |
# 参照音声ファイルのパスが正しいか確認!
|
82 |
+
reference_audio = './sample.wav' # ※sample.wavの絶対パスに変更するか、正しい場所に配置する
|
83 |
if not os.path.exists(reference_audio):
|
84 |
return jsonify({"error": "参照音声ファイルが見つかりません", "details": reference_audio}), 500
|
85 |
|