mr2along commited on
Commit
90a4482
·
verified ·
1 Parent(s): d75d66d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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://huggingface.co/spaces/mr2along/speech_recognize/blob/main/paragraph.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,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: