Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
tanveeshsingh
commited on
Commit
·
3bea114
1
Parent(s):
e052565
Add judge ids
Browse files
app.py
CHANGED
@@ -118,9 +118,9 @@ async def judge_reliability(input_style, document, conversation, claim, question
|
|
118 |
print(conversation)
|
119 |
outputs= await collinear.judge.veritas.conversation('72267aea-e1c7-4f38-8eb8-f5e3c2abc279',document,conversation[:-1],conversation[-1])
|
120 |
elif input_style == "NLI":
|
121 |
-
outputs = await collinear.judge.veritas.natural_language_inference(document,claim)
|
122 |
elif input_style == "QA format":
|
123 |
-
outputs = await collinear.judge.veritas.question_answer(document,question,answer)
|
124 |
output = outputs.judgement
|
125 |
if output ==1:
|
126 |
results = "✅"
|
|
|
118 |
print(conversation)
|
119 |
outputs= await collinear.judge.veritas.conversation('72267aea-e1c7-4f38-8eb8-f5e3c2abc279',document,conversation[:-1],conversation[-1])
|
120 |
elif input_style == "NLI":
|
121 |
+
outputs = await collinear.judge.veritas.natural_language_inference('72267aea-e1c7-4f38-8eb8-f5e3c2abc279',document,claim)
|
122 |
elif input_style == "QA format":
|
123 |
+
outputs = await collinear.judge.veritas.question_answer('72267aea-e1c7-4f38-8eb8-f5e3c2abc279',document,question,answer)
|
124 |
output = outputs.judgement
|
125 |
if output ==1:
|
126 |
results = "✅"
|