TymaaHammouda commited on
Commit
d9d997e
·
verified ·
1 Parent(s): 9d495ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -24,7 +24,7 @@ class ConflictDetectionRequest(BaseModel):
24
  # -----------------------------
25
  def build_prompt(req1, req2, prompt_type="zero-shot"):
26
  if prompt_type == "zero-shot":
27
- return f"Do the following sentences contradict each other, yes or no: 1.{req1} 2.{req2}"
28
  elif prompt_type == "few-shot":
29
  examples = (
30
  "Example 1:\n"
 
24
  # -----------------------------
25
  def build_prompt(req1, req2, prompt_type="zero-shot"):
26
  if prompt_type == "zero-shot":
27
+ return f"Do the following sentences contradict each other, answer with just (yes or no): 1.{req1} 2.{req2}"
28
  elif prompt_type == "few-shot":
29
  examples = (
30
  "Example 1:\n"