shaheerawan3 commited on
Commit
289a2b9
·
verified ·
1 Parent(s): d4c492b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
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
- 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36',
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]: