huy-ha commited on
Commit
a9023d8
1 Parent(s): 5cbb0f4

cache examples

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. packages.txt +1 -0
app.py CHANGED
@@ -84,7 +84,7 @@ iface = gr.Interface(
84
 
85
  This relevancy extractor builds heavily on [Chefer et al.'s codebase](https://github.com/hila-chefer/Transformer-MM-Explainability) and [CLIP on Wheels' codebase](https://cow.cs.columbia.edu/).""",
86
  fn=generate_relevancy,
87
- cache_examples=False,
88
  inputs=[
89
  gr.Image(type="numpy", label="Image"),
90
  gr.Textbox(label="Labels (comma separated)"),
 
84
 
85
  This relevancy extractor builds heavily on [Chefer et al.'s codebase](https://github.com/hila-chefer/Transformer-MM-Explainability) and [CLIP on Wheels' codebase](https://cow.cs.columbia.edu/).""",
86
  fn=generate_relevancy,
87
+ cache_examples=True,
88
  inputs=[
89
  gr.Image(type="numpy", label="Image"),
90
  gr.Textbox(label="Labels (comma separated)"),
packages.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ fonts-lato