TymaaHammouda commited on
Commit
f4ada89
·
verified ·
1 Parent(s): 4027959

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,7 +32,7 @@ def predict(request: ConflictDetectionRequest):
32
  Req1 = request.Req1
33
  Req2 = request.Req2
34
 
35
- question = 'Do the following sentences contradict each other, answer with just yes or no: 1.{Req1} 2.{Req2}'
36
  inputs = tokenizer([question], return_tensors="pt").to(model.device)
37
 
38
  # Generate response
 
32
  Req1 = request.Req1
33
  Req2 = request.Req2
34
 
35
+ question = f"Do the following sentences contradict each other, answer with just yes or no: 1.{Req1} 2.{Req2}"
36
  inputs = tokenizer([question], return_tensors="pt").to(model.device)
37
 
38
  # Generate response