Update app.py
Browse files
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'
|