Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,23 +35,31 @@ program_df = pd.DataFrame({
|
|
35 |
|
36 |
template = """
|
37 |
You are a sports TV schedule assistant.
|
38 |
-
|
39 |
-
suggest an optimal schedule plan.
|
40 |
|
41 |
Today's context:
|
42 |
-
|
43 |
-
|
|
|
|
|
44 |
|
45 |
Constraints:
|
46 |
-
|
47 |
-
|
48 |
-
|
|
|
|
|
|
|
49 |
|
50 |
Available Programs:
|
51 |
{program_list}
|
52 |
|
53 |
-
|
54 |
-
|
|
|
|
|
|
|
55 |
"""
|
56 |
|
57 |
prompt = PromptTemplate.from_template(template)
|
|
|
35 |
|
36 |
template = """
|
37 |
You are a sports TV schedule assistant.
|
38 |
+
|
39 |
+
Given the available program data and current date/time constraints, suggest an optimal schedule plan.
|
40 |
|
41 |
Today's context:
|
42 |
+
|
43 |
+
Day: {day_of_week}
|
44 |
+
|
45 |
+
Is Holiday: {is_holiday}
|
46 |
|
47 |
Constraints:
|
48 |
+
|
49 |
+
Do NOT repeat the same ProgramType back-to-back
|
50 |
+
|
51 |
+
Prioritize high-rated programs in prime time (18:00–22:00)
|
52 |
+
|
53 |
+
Do NOT repeat the same program more than once per day
|
54 |
|
55 |
Available Programs:
|
56 |
{program_list}
|
57 |
|
58 |
+
Instructions:
|
59 |
+
Return only the final formatted schedule. For each program, list:
|
60 |
+
HH:MM - ProgramName
|
61 |
+
|
62 |
+
DO NOT include any internal thoughts, explanations, or planning process. DO NOT include "<think>" or commentary. ONLY output the final formatted schedule.
|
63 |
"""
|
64 |
|
65 |
prompt = PromptTemplate.from_template(template)
|