BALAKA commited on
Commit
7163dd9
·
1 Parent(s): 20156f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -139,19 +139,20 @@ with demo:
139
  file_input = gr.Audio(type="filepath", optional=True, labe="Drop your audio file here.")
140
  file_output = gr.Textbox(labe="Your output is here.")
141
  text_button4 = gr.Button("Submit")
 
142
  with gr.TabItem("From youtube"):
143
  with gr.Row():
144
  youtube_input = gr.Textbox(
145
  label="Insert your youtube link here.", placeholder='https://www.youtube.com/watch?v=dQw4w9WgXcQ')
146
  youtube_output = gr.Textbox(labe="Your output is here.")
147
  text_button2 = gr.Button("Submit")
 
148
  with gr.TabItem("From twitch"):
149
  with gr.Row():
150
  twitch_input = gr.Textbox(label="Insert your twitch link or ID here.",
151
  placeholder='https://www.twitch.tv/videos/1823056925 or 1823056925')
152
  twitch_output = gr.Textbox(labe="Your output is here.")
153
  text_button3 = gr.Button("Submit")
154
- examples = gr.Examples(examples=["ex/ex1.mp3"], input = file_input)
155
 
156
  text_button1.click(process, inputs=voice, outputs=voice_output)
157
  text_button2.click(youtube_loader, inputs=youtube_input,
 
139
  file_input = gr.Audio(type="filepath", optional=True, labe="Drop your audio file here.")
140
  file_output = gr.Textbox(labe="Your output is here.")
141
  text_button4 = gr.Button("Submit")
142
+ examples = gr.Examples(["ex/ex1.mp3"], input = file_input)
143
  with gr.TabItem("From youtube"):
144
  with gr.Row():
145
  youtube_input = gr.Textbox(
146
  label="Insert your youtube link here.", placeholder='https://www.youtube.com/watch?v=dQw4w9WgXcQ')
147
  youtube_output = gr.Textbox(labe="Your output is here.")
148
  text_button2 = gr.Button("Submit")
149
+ gr.Examples([["https://youtu.be/JwOJWFniWS8"], ["https://youtu.be/B8TvZyoucxM"]], inputs = youtube_input, outputs= youtube_output, fn =youtube_loader)
150
  with gr.TabItem("From twitch"):
151
  with gr.Row():
152
  twitch_input = gr.Textbox(label="Insert your twitch link or ID here.",
153
  placeholder='https://www.twitch.tv/videos/1823056925 or 1823056925')
154
  twitch_output = gr.Textbox(labe="Your output is here.")
155
  text_button3 = gr.Button("Submit")
 
156
 
157
  text_button1.click(process, inputs=voice, outputs=voice_output)
158
  text_button2.click(youtube_loader, inputs=youtube_input,