Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -36,30 +36,36 @@ program_df = pd.DataFrame({
|
|
36 |
template = """
|
37 |
You are a sports TV schedule assistant.
|
38 |
|
39 |
-
|
40 |
|
41 |
-
|
42 |
-
-
|
43 |
-
-
|
|
|
|
|
44 |
|
45 |
-
|
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 |
-
|
51 |
-
|
52 |
|
53 |
-
|
54 |
-
|
|
|
|
|
|
|
|
|
|
|
55 |
|
56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
|
58 |
-
|
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)
|
|
|
36 |
template = """
|
37 |
You are a sports TV schedule assistant.
|
38 |
|
39 |
+
Your job is to generate a clean, formatted schedule for a specific day.
|
40 |
|
41 |
+
Constraints:
|
42 |
+
- Do NOT return ANY internal reasoning, explanations, or commentary.
|
43 |
+
- Do NOT return any Markdown, <tags>, or extra newlines.
|
44 |
+
- Do NOT start with any greeting or introduction.
|
45 |
+
- You MUST return exactly and only the schedule lines in this format:
|
46 |
|
47 |
+
HH:MM - HH:MM ProgramName (ProgramType, Rating): <1-line reason>
|
|
|
|
|
|
|
48 |
|
49 |
+
Example:
|
50 |
+
08:00 - 08:30 Morning Match Recap (Digest, 6.2): Ideal morning content to start the day
|
51 |
|
52 |
+
Instructions:
|
53 |
+
- Avoid back-to-back programs of the same ProgramType
|
54 |
+
- Prioritize highest-rated programs during prime time (18:00β22:00)
|
55 |
+
- Do not repeat any program on the same day
|
56 |
+
- Use the full 4-hour prime time wisely
|
57 |
+
- Only return the final formatted lines in the structure above
|
58 |
+
- Rating must be a number with one decimal and enclosed in parentheses
|
59 |
|
60 |
+
Now generate a Saturday schedule using the following available programs:
|
61 |
+
|
62 |
+
- Morning Match Recap (Digest, 30 mins, 6.2)
|
63 |
+
- Champions League Highlights (Highlights, 60 mins, 8.2)
|
64 |
+
- FanZone Live (TalkShow, 60 mins, 7.8)
|
65 |
+
- Classic Replays (Replay, 90 mins, 7.4)
|
66 |
+
- Legends Talk (TalkShow, 30 mins, 6.9)
|
67 |
|
68 |
+
Start the schedule from 09:00 AM and use prime time from 18:00 to 22:00 wisely.
|
|
|
|
|
|
|
|
|
69 |
"""
|
70 |
|
71 |
prompt = PromptTemplate.from_template(template)
|