Spaces:
Runtime error
Runtime error
Martijn van Beers
commited on
Commit
·
9332582
1
Parent(s):
1b49495
Remove caching of examples
Browse filesWe have too many examples, and the space runs out of memory, so disable
the caching
app.py
CHANGED
@@ -109,6 +109,7 @@ iface = gr.Interface(fn=run_demo,
|
|
109 |
outputs=default_outputs,
|
110 |
title="CLIP Grounding Explainability",
|
111 |
description=description,
|
|
|
112 |
examples=[["example_images/London.png", "London Eye"],
|
113 |
["example_images/London.png", "Big Ben"],
|
114 |
["example_images/harrypotter.png", "Harry"],
|
@@ -190,6 +191,7 @@ iface_NER = gr.Interface(fn=NER_demo,
|
|
190 |
outputs=outputs_NER,
|
191 |
title="Named Entity Grounding explainability using CLIP",
|
192 |
description=description_NER,
|
|
|
193 |
examples=[
|
194 |
["example_images/London.png", "In this image we see Big Ben and the London Eye, on both sides of the river Thames."],
|
195 |
["example_images/harrypotter.png", "Hermione, Harry and Ron in their school uniform"],
|
|
|
109 |
outputs=default_outputs,
|
110 |
title="CLIP Grounding Explainability",
|
111 |
description=description,
|
112 |
+
cache_examples=False,
|
113 |
examples=[["example_images/London.png", "London Eye"],
|
114 |
["example_images/London.png", "Big Ben"],
|
115 |
["example_images/harrypotter.png", "Harry"],
|
|
|
191 |
outputs=outputs_NER,
|
192 |
title="Named Entity Grounding explainability using CLIP",
|
193 |
description=description_NER,
|
194 |
+
cache_examples=False,
|
195 |
examples=[
|
196 |
["example_images/London.png", "In this image we see Big Ben and the London Eye, on both sides of the river Thames."],
|
197 |
["example_images/harrypotter.png", "Hermione, Harry and Ron in their school uniform"],
|