SoumyaJ commited on
Commit
ee0b430
Β·
verified Β·
1 Parent(s): b33413e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +18 -19
app.py CHANGED
@@ -36,31 +36,30 @@ program_df = pd.DataFrame({
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 - 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
- You must strictly follow the output format **ONLY**.
 
 
 
64
  """
65
 
66
  prompt = PromptTemplate.from_template(template)
 
36
  template = """
37
  You are a sports TV schedule assistant.
38
 
39
+ Given the available program data and current day/time context, generate an optimal TV schedule.
40
 
41
+ πŸ—“οΈ Context:
42
+ - Day: {day_of_week}
43
+ - Is Holiday: {is_holiday}
44
 
45
+ πŸ“‹ Constraints:
46
+ - No back-to-back programs of the same `ProgramType`
47
+ - Prioritize highest-rated programs during prime time (18:00–22:00)
48
+ - No program can be repeated on the same day
49
 
50
+ πŸŽ₯ Available Programs:
 
 
 
 
 
 
 
 
 
 
51
  {program_list}
52
 
53
+ πŸ“ OUTPUT FORMAT:
54
+ Return ONLY the final schedule in this format:
55
+
56
+ HH:MM - HH:MM ProgramName (ProgramType, Rating): <1-line reason>
57
 
58
+ ⚠️ VERY IMPORTANT:
59
+ - Do NOT include any explanation, notes, or internal thinking
60
+ - Do NOT use tags like <think>, <plan>, <analyze>
61
+ - Do NOT return anything except the final schedule in the format provided above
62
+ - The output MUST start directly with the first time slot
63
  """
64
 
65
  prompt = PromptTemplate.from_template(template)