Spaces:
Runtime error
Runtime error
Fix blocks render
Browse files
app.py
CHANGED
@@ -85,14 +85,17 @@ download_audio(audio2_url, audio2_filename)
|
|
85 |
"""
|
86 |
Interfaces
|
87 |
"""
|
88 |
-
|
89 |
-
|
|
|
|
|
|
|
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 = [
|
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=[
|
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
|