AlexMo commited on
Commit
8defe88
1 Parent(s): 9ceaecf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -81,7 +81,18 @@ with gr.Blocks() as demo:
81
  """
82
  )
83
  with gr.Tab('Get a summary from your own mic or audio file'):
84
- mf_transcribe
 
 
 
 
 
 
 
 
 
 
 
85
  with gr.Tab('Summary of Youtube video'):
86
  input_text_url = gr.Textbox(placeholder='Youtube video URL', label='URL')
87
  result_button_transcribe = gr.Button('1. Transcribe')
 
81
  """
82
  )
83
  with gr.Tab('Get a summary from your own mic or audio file'):
84
+ input_audio = [
85
+ gr.inputs.Audio(source="microphone", type="filepath", optional=True),
86
+ gr.inputs.Audio(source="upload", type="filepath", optional=True),
87
+ ]
88
+ result_button_transcribe_audio = gr.Button('1. Transcribe')
89
+ output_text_transcribe_audio = gr.Textbox(placeholder='Transcript of the audio file.', label='Transcript')
90
+
91
+ result_button_summary_audio = gr.Button('2. Get a summary')
92
+ output_text_summary_audio = gr.Textbox(placeholder='Summary of the audio file.', label='Summary')
93
+
94
+ result_button_transcribe_audio.click(getText, inputs=input_audio, outputs=output_text_transcribe_audio)
95
+ result_button_summary_audio.click(getSummary, inputs=output_text_transcribe_audio, outputs=output_text_summary_audio)
96
  with gr.Tab('Summary of Youtube video'):
97
  input_text_url = gr.Textbox(placeholder='Youtube video URL', label='URL')
98
  result_button_transcribe = gr.Button('1. Transcribe')