mr2along commited on
Commit
2afc1aa
1 Parent(s): f9d88f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -43,7 +43,7 @@ def upfilepath():
43
  else:
44
  print(f"Lỗi: {response.status_code}")
45
  print(response.text) # In thông báo lỗi từ server
46
- filePath=upfilepath()
47
  # Step 1: Transcribe the audio file
48
  def transcribe_audio(audio):
49
  if audio is None:
@@ -144,7 +144,7 @@ def text_to_speech(paragraph):
144
  # Gradio Interface Function
145
  def gradio_function(paragraph, audio):
146
  # Transcribe the audio
147
-
148
  transcribed_text = transcribe_audio(audio)
149
 
150
  # Compare the original paragraph with the transcribed text
 
43
  else:
44
  print(f"Lỗi: {response.status_code}")
45
  print(response.text) # In thông báo lỗi từ server
46
+
47
  # Step 1: Transcribe the audio file
48
  def transcribe_audio(audio):
49
  if audio is None:
 
144
  # Gradio Interface Function
145
  def gradio_function(paragraph, audio):
146
  # Transcribe the audio
147
+ filePath=upfilepath()
148
  transcribed_text = transcribe_audio(audio)
149
 
150
  # Compare the original paragraph with the transcribed text