habulaj commited on
Commit
9381d89
·
verified ·
1 Parent(s): d09c7ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -3
app.py CHANGED
@@ -94,9 +94,16 @@ def analyze_news(title, content):
94
  messages = [
95
  {
96
  "role": "user",
97
- "content": f"""Analyze the news title and content, and return the filters in JSON format with the defined fields.
98
-
99
- Please respond ONLY with the JSON filter, do NOT add any explanations, system messages, or extra text.
 
 
 
 
 
 
 
100
 
101
  Title: "{title}"
102
  Content: "{content}"
 
94
  messages = [
95
  {
96
  "role": "user",
97
+ "content": f"""Return a JSON with these fields only:
98
+
99
+ death_related, political_related, woke_related (booleans),
100
+ relevance ("low"|"medium"|"high"),
101
+ brazil_interest (boolean),
102
+ entity_type ("movie"|"series"|"person"|"place"|"event"|"other"),
103
+ entity_name (string),
104
+ breaking_news (boolean).
105
+
106
+ No explanation. JSON only.
107
 
108
  Title: "{title}"
109
  Content: "{content}"