Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,10 +27,7 @@ class ImageScraper:
|
|
| 27 |
self.PIXABAY_API_KEY = "48069976-37e20099248207cee12385560" # Replace with your key
|
| 28 |
self.stock_images = [
|
| 29 |
"https://images.pexels.com/photos/60504/security-protection-anti-virus-software-60504.jpeg",
|
| 30 |
-
|
| 31 |
-
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
|
| 32 |
-
'Accept-Language': 'en-US,en;q=0.5',
|
| 33 |
-
'Connection': 'keep-alive',
|
| 34 |
]
|
| 35 |
|
| 36 |
def get_images(self, query: str, num_images: int = 15) -> List[str]:
|
|
|
|
| 27 |
self.PIXABAY_API_KEY = "48069976-37e20099248207cee12385560" # Replace with your key
|
| 28 |
self.stock_images = [
|
| 29 |
"https://images.pexels.com/photos/60504/security-protection-anti-virus-software-60504.jpeg",
|
| 30 |
+
|
|
|
|
|
|
|
|
|
|
| 31 |
]
|
| 32 |
|
| 33 |
def get_images(self, query: str, num_images: int = 15) -> List[str]:
|