Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -29,11 +29,11 @@ with open(TEXT_LABEL,"r",encoding='utf-8') as f:
|
|
29 |
|
30 |
# Gaepago Inference Model function
|
31 |
def gaepago_fn(tmp_audio_dir):
|
32 |
-
if os.path.isfile(tmp_audio_dir):
|
33 |
-
|
34 |
-
else:
|
35 |
-
|
36 |
-
|
37 |
audio_dataset = Dataset.from_dict({"audio": [tmp_audio_dir]}).cast_column("audio", Audio(sampling_rate=16000))
|
38 |
inputs = feature_extractor(audio_dataset[0]["audio"]["array"]
|
39 |
,sampling_rate=audio_dataset[0]["audio"]["sampling_rate"]
|
|
|
29 |
|
30 |
# Gaepago Inference Model function
|
31 |
def gaepago_fn(tmp_audio_dir):
|
32 |
+
# if os.path.isfile(tmp_audio_dir):
|
33 |
+
print(tmp_audio_dir)
|
34 |
+
# else:
|
35 |
+
# ## khan test
|
36 |
+
# tmp_audio_dir = './sample/bark_sample.wav'
|
37 |
audio_dataset = Dataset.from_dict({"audio": [tmp_audio_dir]}).cast_column("audio", Audio(sampling_rate=16000))
|
38 |
inputs = feature_extractor(audio_dataset[0]["audio"]["array"]
|
39 |
,sampling_rate=audio_dataset[0]["audio"]["sampling_rate"]
|