Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ if not os.path.exists('audio'):
|
|
13 |
|
14 |
def loadfile():
|
15 |
# URL của tệp âm thanh (nguồn từ internet)
|
16 |
-
file_url = "https://
|
17 |
|
18 |
# URL để upload tệp âm thanh
|
19 |
upload_url = "https://mr2along-speech-recognize.hf.space/gradio_api/upload?upload_id=yw08d344te"
|
@@ -38,7 +38,6 @@ def loadfile():
|
|
38 |
# Lấy đường dẫn của tệp đã upload
|
39 |
if isinstance(result, list) and result:
|
40 |
file_url = result[0]
|
41 |
-
print(f"Đường dẫn tệp đã tách: {file_url}")
|
42 |
extracted_path = os.path.dirname(file_url)
|
43 |
print(f"Đường dẫn tệp đã tách: {extracted_path}")
|
44 |
else:
|
|
|
13 |
|
14 |
def loadfile():
|
15 |
# URL của tệp âm thanh (nguồn từ internet)
|
16 |
+
file_url = "https://dictionary.cambridge.org/vi/media/english/uk_pron/u/uks/ukspe/ukspect009.mp3"
|
17 |
|
18 |
# URL để upload tệp âm thanh
|
19 |
upload_url = "https://mr2along-speech-recognize.hf.space/gradio_api/upload?upload_id=yw08d344te"
|
|
|
38 |
# Lấy đường dẫn của tệp đã upload
|
39 |
if isinstance(result, list) and result:
|
40 |
file_url = result[0]
|
|
|
41 |
extracted_path = os.path.dirname(file_url)
|
42 |
print(f"Đường dẫn tệp đã tách: {extracted_path}")
|
43 |
else:
|