Silemo commited on
Commit
bebe125
·
1 Parent(s): bfe995c

Fix blocks render

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -85,14 +85,17 @@ download_audio(audio2_url, audio2_filename)
85
  """
86
  Interfaces
87
  """
88
- transcription = gr.Textbox(label="Transcription")
89
- tags = gr.Textbox(label="Tags")
 
 
 
90
 
91
  # Multiple interfaces using tabs -> https://github.com/gradio-app/gradio/issues/450
92
  io1 = gr.Interface(
93
  fn = transcribe_and_tag,
94
  inputs = gr.Audio(sources=["upload", "microphone"], type="filepath"),
95
- outputs = [transcription, tags],
96
  examples = [
97
  [audio1_filename],
98
  [audio2_filename],
@@ -104,7 +107,7 @@ io1 = gr.Interface(
104
  io2 = gr.Interface(
105
  fn = transcribe_video,
106
  inputs = gr.Textbox(label = "YouTube URL", placeholder = "https://youtu.be/9DImRZERJNs?si=1Lme7o_KH2oCxU7y"),
107
- outputs=[transcription, tags],
108
 
109
  examples=[
110
  # Meloni - Confindustria
 
85
  """
86
  Interfaces
87
  """
88
+ audio_transcription = gr.Textbox(label="Transcription")
89
+ audio_tags = gr.Textbox(label="Tags")
90
+
91
+ yt = gr.Textbox(label="Transcription")
92
+ yt_tags = gr.Textbox(label="Tags")
93
 
94
  # Multiple interfaces using tabs -> https://github.com/gradio-app/gradio/issues/450
95
  io1 = gr.Interface(
96
  fn = transcribe_and_tag,
97
  inputs = gr.Audio(sources=["upload", "microphone"], type="filepath"),
98
+ outputs = [audio_transcription, audio_tags],
99
  examples = [
100
  [audio1_filename],
101
  [audio2_filename],
 
107
  io2 = gr.Interface(
108
  fn = transcribe_video,
109
  inputs = gr.Textbox(label = "YouTube URL", placeholder = "https://youtu.be/9DImRZERJNs?si=1Lme7o_KH2oCxU7y"),
110
+ outputs=[yt_transcription, yt_tags],
111
 
112
  examples=[
113
  # Meloni - Confindustria