habulaj commited on
Commit
c4b5cfd
·
verified ·
1 Parent(s): c997846

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 with the defined fields.
44
 
45
- Please respond ONLY with the JSON filter, do NOT add any explanations, system messages, or extra text.
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}"