Spaces:
Runtime error
Runtime error
TogetherAI
commited on
Commit
•
7e4d2e0
1
Parent(s):
f3ee165
Update app.py
Browse files
app.py
CHANGED
@@ -96,7 +96,7 @@ mf_transcribe = gr.Interface(
|
|
96 |
gr.inputs.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
|
97 |
],
|
98 |
outputs="text",
|
99 |
-
layout="
|
100 |
theme="TogetherAi/Alex2",
|
101 |
title="Whisper Large V3: Audio transkribieren",
|
102 |
description=(
|
@@ -107,6 +107,10 @@ mf_transcribe = gr.Interface(
|
|
107 |
allow_flagging="never",
|
108 |
)
|
109 |
|
|
|
|
|
|
|
|
|
110 |
file_transcribe = gr.Interface(
|
111 |
fn=transcribe,
|
112 |
inputs=[
|
@@ -114,7 +118,7 @@ file_transcribe = gr.Interface(
|
|
114 |
gr.inputs.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
|
115 |
],
|
116 |
outputs="text",
|
117 |
-
layout="
|
118 |
theme="TogetherAi/Alex2",
|
119 |
title="Whisper Large V3: Transcribe Audio",
|
120 |
description=(
|
@@ -125,6 +129,10 @@ file_transcribe = gr.Interface(
|
|
125 |
allow_flagging="never",
|
126 |
)
|
127 |
|
|
|
|
|
|
|
|
|
128 |
yt_transcribe = gr.Interface(
|
129 |
fn=yt_transcribe,
|
130 |
inputs=[
|
@@ -132,7 +140,7 @@ yt_transcribe = gr.Interface(
|
|
132 |
gr.inputs.Radio(["transcribe", "translate"], label="Task", default="transcribe")
|
133 |
],
|
134 |
outputs=["html", "text"],
|
135 |
-
layout="
|
136 |
theme="TogetherAi/Alex2",
|
137 |
title="Whisper Large V3: Transcribe YouTube",
|
138 |
description=(
|
@@ -143,6 +151,10 @@ yt_transcribe = gr.Interface(
|
|
143 |
allow_flagging="never",
|
144 |
)
|
145 |
|
|
|
|
|
|
|
|
|
146 |
with demo:
|
147 |
gr.TabbedInterface([mf_transcribe, file_transcribe, yt_transcribe], ["Microphone", "Audio file", "YouTube"])
|
148 |
|
|
|
96 |
gr.inputs.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
|
97 |
],
|
98 |
outputs="text",
|
99 |
+
layout="vertical", # Ändere das Layout auf "vertical"
|
100 |
theme="TogetherAi/Alex2",
|
101 |
title="Whisper Large V3: Audio transkribieren",
|
102 |
description=(
|
|
|
107 |
allow_flagging="never",
|
108 |
)
|
109 |
|
110 |
+
# Ändere das Layout für den Button auf "centered" und setze die Breite des Buttons auf 200 Pixel
|
111 |
+
mf_transcribe[0].style['justify-content'] = 'center'
|
112 |
+
mf_transcribe[1].style['width'] = '200px'
|
113 |
+
|
114 |
file_transcribe = gr.Interface(
|
115 |
fn=transcribe,
|
116 |
inputs=[
|
|
|
118 |
gr.inputs.Radio(["transcribe", "translate"], label="Task", default="transcribe"),
|
119 |
],
|
120 |
outputs="text",
|
121 |
+
layout="vertical", # Ändere das Layout auf "vertical"
|
122 |
theme="TogetherAi/Alex2",
|
123 |
title="Whisper Large V3: Transcribe Audio",
|
124 |
description=(
|
|
|
129 |
allow_flagging="never",
|
130 |
)
|
131 |
|
132 |
+
# Ändere das Layout für den Button auf "centered" und setze die Breite des Buttons auf 200 Pixel
|
133 |
+
file_transcribe[0].style['justify-content'] = 'center'
|
134 |
+
file_transcribe[1].style['width'] = '200px'
|
135 |
+
|
136 |
yt_transcribe = gr.Interface(
|
137 |
fn=yt_transcribe,
|
138 |
inputs=[
|
|
|
140 |
gr.inputs.Radio(["transcribe", "translate"], label="Task", default="transcribe")
|
141 |
],
|
142 |
outputs=["html", "text"],
|
143 |
+
layout="vertical", # Ändere das Layout auf "vertical"
|
144 |
theme="TogetherAi/Alex2",
|
145 |
title="Whisper Large V3: Transcribe YouTube",
|
146 |
description=(
|
|
|
151 |
allow_flagging="never",
|
152 |
)
|
153 |
|
154 |
+
# Ändere das Layout für den Button auf "centered" und setze die Breite des Buttons auf 200 Pixel
|
155 |
+
yt_transcribe[0].style['justify-content'] = 'center'
|
156 |
+
yt_transcribe[1].style['width'] = '200px'
|
157 |
+
|
158 |
with demo:
|
159 |
gr.TabbedInterface([mf_transcribe, file_transcribe, yt_transcribe], ["Microphone", "Audio file", "YouTube"])
|
160 |
|