vankienemk commited on
Commit
5147ead
·
verified ·
1 Parent(s): 901f41e

Update app.py

Browse files

Adapt method to new version of gradio

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ def transcribe(audio_file):
14
  # Tạo giao diện
15
  demo = gr.Interface(
16
  fn=transcribe,
17
- inputs=gr.Audio(source="upload", type="filepath", label="Tải lên file âm thanh (.wav, .mp3...)"),
18
  outputs=gr.Textbox(label="Kết quả chuyển văn bản"),
19
  title="Nhận diện giọng nói bằng Whisper",
20
  description="Tải file âm thanh và hệ thống sẽ nhận diện nội dung giọng nói bằng mô hình Whisper của OpenAI."
 
14
  # Tạo giao diện
15
  demo = gr.Interface(
16
  fn=transcribe,
17
+ inputs=gr.Audio(type="filepath", label="Tải lên file âm thanh (.wav, .mp3...)"),
18
  outputs=gr.Textbox(label="Kết quả chuyển văn bản"),
19
  title="Nhận diện giọng nói bằng Whisper",
20
  description="Tải file âm thanh và hệ thống sẽ nhận diện nội dung giọng nói bằng mô hình Whisper của OpenAI."