Fabrice-TIERCELIN commited on
Commit
14255b1
·
verified ·
1 Parent(s): 7e5ffbf

This Pull Request fixes the space

Browse files

The examples break the space if they are cached at the startup because it's too long. If they are cached after the startup, there are no more problems.

Click on _Merge_ to add this feature.

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -137,7 +137,7 @@ with gr.Blocks(css=css) as block:
137
 
138
  inputs = [input_text, description]
139
  outputs = [audio_out]
140
- gr.Examples(examples=examples, fn=gen_tts, inputs=inputs, outputs=outputs)
141
  run_button.click(fn=gen_tts, inputs=inputs, outputs=outputs, queue=True)
142
  gr.HTML(
143
  """
 
137
 
138
  inputs = [input_text, description]
139
  outputs = [audio_out]
140
+ gr.Examples(examples=examples, fn=gen_tts, inputs=inputs, outputs=outputs, cache_examples=False)
141
  run_button.click(fn=gen_tts, inputs=inputs, outputs=outputs, queue=True)
142
  gr.HTML(
143
  """