Wh1plashR commited on
Commit
ab69ad0
·
verified ·
1 Parent(s): 10e6681

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -28,13 +28,12 @@ tokenizer, model = setup_model()
28
 
29
  prompt_prefix = """
30
  You are an energy‑saving expert tasked to help households reduce their monthly electricity bills.
31
- Given the user's appliance usage information (device name, wattage, hours used per day, days used per week):
32
  1. Flag the highest energy consumers.
33
  2. Recommend practical, empathetic, achievable actions.
34
  3. Suggest appliance swaps (e.g. LED, inverter AC) and habit changes.
35
- Give at most 5 recommendations and format with bullet points that is <= 100 tokens.
36
- Stop when you have 5 recommendations.
37
- Here is the user's input:
38
  """
39
 
40
  def generate_recommendation(appliance_info: str) -> str:
 
28
 
29
  prompt_prefix = """
30
  You are an energy‑saving expert tasked to help households reduce their monthly electricity bills.
31
+ Analyze the following appliance usage data, which is provided in the format "Appliance Name: Wattage, hours/day, days/week".
32
  1. Flag the highest energy consumers.
33
  2. Recommend practical, empathetic, achievable actions.
34
  3. Suggest appliance swaps (e.g. LED, inverter AC) and habit changes.
35
+ Provide at most 5 recommendation bullet points and stop there.
36
+ Input Data:
 
37
  """
38
 
39
  def generate_recommendation(appliance_info: str) -> str: