SoumyaJ commited on
Commit
4d571a4
·
verified ·
1 Parent(s): 23692bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -9
app.py CHANGED
@@ -35,23 +35,31 @@ program_df = pd.DataFrame({
35
 
36
  template = """
37
  You are a sports TV schedule assistant.
38
- Given the available program data and current date/time constraints,
39
- suggest an optimal schedule plan.
40
 
41
  Today's context:
42
- - Day: {day_of_week}
43
- - Is Holiday: {is_holiday}
 
 
44
 
45
  Constraints:
46
- - Avoid repeating the same ProgramType back-to-back
47
- - Prioritize high-rated programs in prime time (18:00–22:00)
48
- - Avoid replays more than once a day
 
 
 
49
 
50
  Available Programs:
51
  {program_list}
52
 
53
- Suggest a schedule for the day (in HH:MM format), with reasoning in not more than 2 lines.
54
- Output must be the final formatted schedule only — do not include any internal thoughts, planning steps, or explanatory text like "<think>" or reasoning process. Return only the final answer in a clean, readable list.
 
 
 
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)