Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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"
|