Plachta commited on
Commit
4c47c92
1 Parent(s): 512efa6

Added examples

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -508,7 +508,7 @@ def main():
508
  inputs=[textbox, language_dropdown, accent_dropdown, upload_audio_prompt, record_audio_prompt, textbox_transcript],
509
  outputs=[text_output, audio_output],
510
  fn=infer_from_audio,
511
- cache_examples=True,)
512
  with gr.Tab("Make prompt"):
513
  gr.Markdown(make_prompt_md)
514
  with gr.Row():
@@ -533,7 +533,7 @@ def main():
533
  inputs=[textbox2, upload_audio_prompt_2, record_audio_prompt_2, textbox_transcript2],
534
  outputs=[text_output_2, prompt_output_2],
535
  fn=make_npz_prompt,
536
- cache_examples=True,)
537
  with gr.Tab("Infer from prompt"):
538
  gr.Markdown(infer_from_prompt_md)
539
  with gr.Row():
@@ -558,7 +558,7 @@ def main():
558
  inputs=[textbox_3, language_dropdown_3, accent_dropdown_3, preset_dropdown_3, prompt_file],
559
  outputs=[text_output_3, audio_output_3],
560
  fn=infer_from_prompt,
561
- cache_examples=True,)
562
  with gr.Tab("Infer long text"):
563
  gr.Markdown(long_text_md)
564
  with gr.Row():
 
508
  inputs=[textbox, language_dropdown, accent_dropdown, upload_audio_prompt, record_audio_prompt, textbox_transcript],
509
  outputs=[text_output, audio_output],
510
  fn=infer_from_audio,
511
+ cache_examples=False,)
512
  with gr.Tab("Make prompt"):
513
  gr.Markdown(make_prompt_md)
514
  with gr.Row():
 
533
  inputs=[textbox2, upload_audio_prompt_2, record_audio_prompt_2, textbox_transcript2],
534
  outputs=[text_output_2, prompt_output_2],
535
  fn=make_npz_prompt,
536
+ cache_examples=False,)
537
  with gr.Tab("Infer from prompt"):
538
  gr.Markdown(infer_from_prompt_md)
539
  with gr.Row():
 
558
  inputs=[textbox_3, language_dropdown_3, accent_dropdown_3, preset_dropdown_3, prompt_file],
559
  outputs=[text_output_3, audio_output_3],
560
  fn=infer_from_prompt,
561
+ cache_examples=False,)
562
  with gr.Tab("Infer long text"):
563
  gr.Markdown(long_text_md)
564
  with gr.Row():