Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
40 |
|
41 |
-
|
|
|
|
|
42 |
|
43 |
-
|
|
|
|
|
|
|
44 |
|
45 |
-
|
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 |
-
|
59 |
-
Return
|
60 |
-
|
|
|
61 |
|
62 |
-
|
63 |
-
|
|
|
|
|
|
|
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)
|