Fabrice-TIERCELIN commited on
Commit
f4d7895
·
verified ·
1 Parent(s): 6f4cac6

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
@@ -43,7 +43,7 @@ with gr.Blocks() as demo:
43
  img1_files = glob.glob('samples/A/*.png')
44
  img2_files = [f.replace('A', 'B') for f in img1_files]
45
  input_files = [[x, y] for x, y in zip(img1_files, img2_files)]
46
- gr.Examples(input_files, fn=infer, inputs=[input_0, input_1], outputs=[output_gt], cache_examples=True)
47
  gr.Markdown(
48
  """
49
  This is the demo of ["Time Travelling Pixels: Bitemporal Features Integration with Foundation Model for Remote Sensing Image Change Detection"](https://arxiv.org/abs/2312.16202). Seeing [Github](https://github.com/KyanChen/TTP) for more information!
 
43
  img1_files = glob.glob('samples/A/*.png')
44
  img2_files = [f.replace('A', 'B') for f in img1_files]
45
  input_files = [[x, y] for x, y in zip(img1_files, img2_files)]
46
+ gr.Examples(input_files, fn=infer, inputs=[input_0, input_1], outputs=[output_gt], cache_examples=False)
47
  gr.Markdown(
48
  """
49
  This is the demo of ["Time Travelling Pixels: Bitemporal Features Integration with Foundation Model for Remote Sensing Image Change Detection"](https://arxiv.org/abs/2312.16202). Seeing [Github](https://github.com/KyanChen/TTP) for more information!