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