Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -94,9 +94,16 @@ def analyze_news(title, content):
|
|
94 |
messages = [
|
95 |
{
|
96 |
"role": "user",
|
97 |
-
"content": f"""
|
98 |
-
|
99 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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}"
|