dhhd255 commited on
Commit
6e554d6
·
1 Parent(s): 0236dd9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -4,6 +4,9 @@ from torchvision import transforms
4
  from huggingface_hub import HfFileSystem
5
  from PIL import Image
6
 
 
 
 
7
  # Authenticate and download the EfficientNet model from Hugging Face
8
  fs = HfFileSystem()
9
  efficientnet_model_path = 'dhhd255/efficientnet_b3/efficientnet_b3.pt'
 
4
  from huggingface_hub import HfFileSystem
5
  from PIL import Image
6
 
7
+ # Clear the torch.hub cache
8
+ torch.hub.clear_cache()
9
+
10
  # Authenticate and download the EfficientNet model from Hugging Face
11
  fs = HfFileSystem()
12
  efficientnet_model_path = 'dhhd255/efficientnet_b3/efficientnet_b3.pt'