Spaces:
Runtime error
Runtime error
Commit
·
530b49f
1
Parent(s):
d61010c
Update app.py
Browse files
app.py
CHANGED
@@ -33,10 +33,12 @@ with gr.Blocks() as demo:
|
|
33 |
btn.click(transcript_generator, inputs=[input1,input2], outputs=[output1,output2])
|
34 |
|
35 |
|
36 |
-
|
37 |
[["https://www.youtube.com/watch?v=47dtFZ8CFo8",'chinese (simplified)'], ["https://www.youtube.com/watch?v=hT_nvWreIhg",'french'],['https://www.youtube.com/watch?v=PMs76lrqiA4','urdu']],
|
38 |
-
fn = transcript_generator,
|
|
|
|
|
|
|
39 |
)
|
40 |
-
|
41 |
if __name__ == "__main__":
|
42 |
demo.launch()
|
|
|
33 |
btn.click(transcript_generator, inputs=[input1,input2], outputs=[output1,output2])
|
34 |
|
35 |
|
36 |
+
gr.Examples(
|
37 |
[["https://www.youtube.com/watch?v=47dtFZ8CFo8",'chinese (simplified)'], ["https://www.youtube.com/watch?v=hT_nvWreIhg",'french'],['https://www.youtube.com/watch?v=PMs76lrqiA4','urdu']],
|
38 |
+
fn = transcript_generator,
|
39 |
+
inputs = [input1,input2],
|
40 |
+
outputs = [output1,output2],
|
41 |
+
cache_examples = True
|
42 |
)
|
|
|
43 |
if __name__ == "__main__":
|
44 |
demo.launch()
|