Spaces:
Running
on
Zero
Running
on
Zero
yuanwenyue
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -235,7 +235,7 @@ if __name__ == "__main__":
|
|
235 |
|
236 |
|
237 |
os.environ['TORCH_HOME'] = '/tmp/.cache'
|
238 |
-
os.environ['GRADIO_EXAMPLES_CACHE'] = '/tmp/gradio_cache'
|
239 |
|
240 |
# Pre-load all models
|
241 |
original_models, fine_models = load_model(options)
|
@@ -292,6 +292,7 @@ if __name__ == "__main__":
|
|
292 |
["/tmp/examples/airplane.jpg", "DINOv2", 20],
|
293 |
["/tmp/examples/ship.jpg", "DINOv2", 20],
|
294 |
["/tmp/examples/chair.jpg", "DINOv2", 20],
|
295 |
-
]
|
|
|
296 |
demo.launch()
|
297 |
|
|
|
235 |
|
236 |
|
237 |
os.environ['TORCH_HOME'] = '/tmp/.cache'
|
238 |
+
# os.environ['GRADIO_EXAMPLES_CACHE'] = '/tmp/gradio_cache'
|
239 |
|
240 |
# Pre-load all models
|
241 |
original_models, fine_models = load_model(options)
|
|
|
292 |
["/tmp/examples/airplane.jpg", "DINOv2", 20],
|
293 |
["/tmp/examples/ship.jpg", "DINOv2", 20],
|
294 |
["/tmp/examples/chair.jpg", "DINOv2", 20],
|
295 |
+
],
|
296 |
+
cache_examples=True)
|
297 |
demo.launch()
|
298 |
|