Update app.py
Browse files
app.py
CHANGED
@@ -40,9 +40,9 @@ def read_root():
|
|
40 |
|
41 |
# -------- INFERENCE --------
|
42 |
def infer_filter(title, content):
|
43 |
-
prompt = f"""Analyze the news title and content, and return the filters in JSON format
|
44 |
|
45 |
-
|
46 |
|
47 |
Title: "{title}"
|
48 |
Content: "{content}"
|
|
|
40 |
|
41 |
# -------- INFERENCE --------
|
42 |
def infer_filter(title, content):
|
43 |
+
prompt = f"""Analyze the news title and content, and return the filters in strict JSON format.
|
44 |
|
45 |
+
Use only double quotes for all property names and string values. Use lowercase `true` and `false` for booleans. Do not include any explanations, labels, or comments.
|
46 |
|
47 |
Title: "{title}"
|
48 |
Content: "{content}"
|