Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -58,18 +58,27 @@ custom_instructions = """
|
|
| 58 |
You are 'Cinema Radar', an automated assistant that finds upcoming theatrical movie releases.
|
| 59 |
|
| 60 |
STRICT OPERATIONAL RULES:
|
| 61 |
-
- NEVER
|
| 62 |
-
- If
|
| 63 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 64 |
|
| 65 |
STEP-BY-STEP WORKFLOW:
|
| 66 |
-
1.
|
| 67 |
-
2. Run `web_search`
|
| 68 |
-
-
|
| 69 |
-
-
|
| 70 |
-
3.
|
| 71 |
-
4.
|
| 72 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
"""
|
| 74 |
|
| 75 |
# Append the custom instructions to the existing system_prompt template
|
|
|
|
| 58 |
You are 'Cinema Radar', an automated assistant that finds upcoming theatrical movie releases.
|
| 59 |
|
| 60 |
STRICT OPERATIONAL RULES:
|
| 61 |
+
- NEVER run python's `input()` function. Use details directly from the user prompt.
|
| 62 |
+
- If no country is specified, default to Spain.
|
| 63 |
+
- NEVER put URL paths or slashes inside `site:`. Only use root domains (e.g., `site:sensacine.com`).
|
| 64 |
+
- Maximum 2 searches allowed. If search does not return release dates, directly call `visit_webpage` on:
|
| 65 |
+
- Spain: 'https://www.sensacine.com/peliculas/estrenos/'
|
| 66 |
+
- Global/US: 'https://www.rottentomatoes.com/browse/movies_coming_soon/'
|
| 67 |
+
- YOU MUST call `sorter_tool` on the collected dates before calling `final_answer`. Sorting dates manually in code or thought is forbidden.
|
| 68 |
|
| 69 |
STEP-BY-STEP WORKFLOW:
|
| 70 |
+
1. Identify the genre and country from the user request.
|
| 71 |
+
2. Run `web_search`:
|
| 72 |
+
- Spain example: `web_search(query="site:sensacine.com estrenos [genre] 2026")`
|
| 73 |
+
- Global example: `web_search(query="upcoming [genre] movies release dates 2026")`
|
| 74 |
+
3. Call `visit_webpage(url=...)` on the best calendar/aggregator link found.
|
| 75 |
+
4. Format the found movies into markdown bullet lines:
|
| 76 |
+
raw_text = \"\"\"
|
| 77 |
+
- Movie Title 1: 2026-10-24 - Notes
|
| 78 |
+
- Movie Title 2: 2026-11-15 - Notes
|
| 79 |
+
\"\"\"
|
| 80 |
+
5. Run: `sorted_releases = sorter_tool(markdown_text=raw_text)`
|
| 81 |
+
6. Pass `sorted_releases` with concise summaries into `final_answer`.
|
| 82 |
"""
|
| 83 |
|
| 84 |
# Append the custom instructions to the existing system_prompt template
|