Ariel commited on
Commit
006608e
β€’
1 Parent(s): d972dd4

update phrases

Browse files
Files changed (1) hide show
  1. SolarPanelDetector.py +9 -10
SolarPanelDetector.py CHANGED
@@ -1,7 +1,6 @@
1
  from ultralytics import YOLO
2
  from PIL import Image
3
  import requests
4
- import os
5
  import random
6
 
7
  model = YOLO('detector.pt')
@@ -93,17 +92,17 @@ def solar_panel_predict(image, conf=0.45):
93
  Tuple of (annotated image, prediction message)
94
  """
95
  negative_setences = [
96
- "No solar panels yet? Your roof is a blank canvas waiting for a green masterpiece! 🎨🌱",
97
- "It's lonely up here without solar panels. Imagine the sun-powered parties you're missing! πŸŒžπŸŽ‰",
98
- "Your roof could be a superhero in disguise. Just needs its solar cape! πŸ¦Έβ€β™‚οΈβ˜€οΈ",
99
- "Clear skies, empty roof. It's the perfect opportunity to harness the sun! πŸŒ€οΈπŸ”‹",
100
- "No panels detected – but don't worry, it's never too late to join the solar revolution and be a ray of hope! πŸŒπŸ’‘"]
101
 
102
  positive_sentences = [
103
- "Solar panels detected: You're not just saving money, you're also charging up Mother Earth's good vibes! πŸŒπŸ’š",
104
- "Roof status: Sunny side up! Your panels are turning rays into awesome days! β˜€οΈπŸ˜Ž",
105
- "You've got solar power! Now your roof is cooler than a polar bear in sunglasses. πŸ»β€β„οΈπŸ•ΆοΈ",
106
- "Green alert: Your roof is now a climate hero's cape! Solar panels are saving the day, one ray at a time. πŸ¦Έβ€β™‚οΈπŸŒž",
107
  "Solar panels spotted: Your roof is now officially a member of the Renewable Energy Rockstars Club! ⭐🌱"]
108
 
109
  results = model(image, stream=True, conf=conf)
 
1
  from ultralytics import YOLO
2
  from PIL import Image
3
  import requests
 
4
  import random
5
 
6
  model = YOLO('detector.pt')
 
92
  Tuple of (annotated image, prediction message)
93
  """
94
  negative_setences = [
95
+ "No solar panels yet?\nYour roof is a blank canvas waiting for a green masterpiece! 🎨🌱",
96
+ "It's lonely up here without solar panels.\nImagine the sun-powered parties you're missing! πŸŒžπŸŽ‰",
97
+ "Your roof could be a superhero in disguise.\nJust needs its solar cape! πŸ¦Έβ€β™‚οΈβ˜€οΈ",
98
+ "Clear skies, empty roof.\nIt's the perfect opportunity to harness the sun! πŸŒ€οΈπŸ”‹",
99
+ "No panels detected – but don't worry,\nit's never too late to join the solar revolution and be a ray of hope! πŸŒπŸ’‘"]
100
 
101
  positive_sentences = [
102
+ "Solar panels detected: You're not just saving money,\nyou're also charging up Mother Earth's good vibes! πŸŒπŸ’š",
103
+ "Roof status: Sunny side up!\nYour panels are turning rays into awesome days! β˜€οΈπŸ˜Ž",
104
+ "You've got solar power!\nNow your roof is cooler than a polar bear in sunglasses. πŸ»β€β„οΈπŸ•ΆοΈ",
105
+ "Green alert: Your roof is now a climate hero's cape!\nSolar panels are saving the day, one ray at a time. πŸ¦Έβ€β™‚οΈπŸŒž",
106
  "Solar panels spotted: Your roof is now officially a member of the Renewable Energy Rockstars Club! ⭐🌱"]
107
 
108
  results = model(image, stream=True, conf=conf)