Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,9 +10,6 @@ import subprocess
|
|
10 |
def install_package(package):
|
11 |
subprocess.check_call(['pip', 'install', package, '--no-build-isolation'])
|
12 |
|
13 |
-
# Install wheel package first
|
14 |
-
install_package('wheel')
|
15 |
-
|
16 |
# Then install flash-attn
|
17 |
install_package('flash-attn')
|
18 |
|
@@ -128,7 +125,7 @@ def youtube_url_to_text_app():
|
|
128 |
language_choice,
|
129 |
],
|
130 |
outputs=[output_text, output_audio],
|
131 |
-
cache_examples=
|
132 |
)
|
133 |
|
134 |
|
@@ -189,7 +186,7 @@ def speaker_diarization_app():
|
|
189 |
max_speaker,
|
190 |
],
|
191 |
outputs=[output_text, output_audio],
|
192 |
-
cache_examples=
|
193 |
)
|
194 |
|
195 |
|
@@ -215,5 +212,4 @@ with gradio_app:
|
|
215 |
with gr.Tab(label="Speaker Diarization"):
|
216 |
speaker_diarization_app()
|
217 |
|
218 |
-
gradio_app.queue()
|
219 |
gradio_app.launch(debug=True)
|
|
|
10 |
def install_package(package):
|
11 |
subprocess.check_call(['pip', 'install', package, '--no-build-isolation'])
|
12 |
|
|
|
|
|
|
|
13 |
# Then install flash-attn
|
14 |
install_package('flash-attn')
|
15 |
|
|
|
125 |
language_choice,
|
126 |
],
|
127 |
outputs=[output_text, output_audio],
|
128 |
+
cache_examples=False,
|
129 |
)
|
130 |
|
131 |
|
|
|
186 |
max_speaker,
|
187 |
],
|
188 |
outputs=[output_text, output_audio],
|
189 |
+
cache_examples=False,
|
190 |
)
|
191 |
|
192 |
|
|
|
212 |
with gr.Tab(label="Speaker Diarization"):
|
213 |
speaker_diarization_app()
|
214 |
|
|
|
215 |
gradio_app.launch(debug=True)
|