yachimat commited on
Commit
cdaa362
1 Parent(s): ea30c4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -59,15 +59,15 @@ def process_audio(audio_file_path, output_format, progress=None):
59
  )
60
  full_transcript += transcript_part.text + "\n"
61
 
62
- text_bytes = BytesIO(full_transcript.encode('utf-8'))
63
- return full_transcript, text_bytes
64
 
65
  iface = gr.Interface(
66
  fn=process_audio,
67
  inputs=gr.Audio(type="filepath", label="音声ファイルをアップロード"),
68
  outputs=[
69
  gr.Textbox(label="出力", show_copy_button=True),
70
- gr.File(label=".txtダウンロード", type='binary')
71
  ],
72
  title="音声ファイルをテキストに変換",
73
  description="このツールは音声ファイルをテキストに変換します。",
 
59
  )
60
  full_transcript += transcript_part.text + "\n"
61
 
62
+ # text_bytes = BytesIO(full_transcript.encode('utf-8'))
63
+ return full_transcript #, text_bytes
64
 
65
  iface = gr.Interface(
66
  fn=process_audio,
67
  inputs=gr.Audio(type="filepath", label="音声ファイルをアップロード"),
68
  outputs=[
69
  gr.Textbox(label="出力", show_copy_button=True),
70
+ # gr.File(label=".txtダウンロード", type='binary')
71
  ],
72
  title="音声ファイルをテキストに変換",
73
  description="このツールは音声ファイルをテキストに変換します。",