Spaces:
Sleeping
Sleeping
Commit
•
35e9544
1
Parent(s):
8bda11a
add examples
Browse files
app.py
CHANGED
@@ -99,9 +99,6 @@ def transcribe(inputs):
|
|
99 |
yield distil_text, distil_runtime, text, runtime
|
100 |
|
101 |
if __name__ == "__main__":
|
102 |
-
# CUDA warm-up step so that we don't count it in our examples
|
103 |
-
_ = distil_pipe("./assets/example_1.wav")
|
104 |
-
|
105 |
with gr.Blocks() as demo:
|
106 |
gr.HTML(
|
107 |
"""
|
@@ -141,10 +138,10 @@ if __name__ == "__main__":
|
|
141 |
)
|
142 |
gr.Markdown("## Examples")
|
143 |
gr.Examples(
|
144 |
-
[["./assets/example_1.wav"]
|
145 |
audio,
|
146 |
outputs=[distil_transcription, distil_runtime, transcription, runtime],
|
147 |
fn=transcribe,
|
148 |
-
cache_examples=
|
149 |
)
|
150 |
demo.queue(max_size=10).launch()
|
|
|
99 |
yield distil_text, distil_runtime, text, runtime
|
100 |
|
101 |
if __name__ == "__main__":
|
|
|
|
|
|
|
102 |
with gr.Blocks() as demo:
|
103 |
gr.HTML(
|
104 |
"""
|
|
|
138 |
)
|
139 |
gr.Markdown("## Examples")
|
140 |
gr.Examples(
|
141 |
+
[["./assets/example_1.wav"]],
|
142 |
audio,
|
143 |
outputs=[distil_transcription, distil_runtime, transcription, runtime],
|
144 |
fn=transcribe,
|
145 |
+
cache_examples=False,
|
146 |
)
|
147 |
demo.queue(max_size=10).launch()
|