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