tanveeshsingh commited on
Commit
dd8c845
1 Parent(s): 38ec036
Files changed (2) hide show
  1. app.py +1 -1
  2. requirements.txt +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ import json
5
  import time
6
  from openai import AsyncOpenAI
7
  from jinja2 import Template
8
- collinear = Collinear(access_token=os.getenv('COLLINEAR_API_KEY'))
9
  prompt = Template("""
10
  iven the following QUESTION, DOCUMENT and ANSWER you must analyze the provided answer and determine whether it is faithful to the contents of the DOCUMENT. The ANSWER must not offer new information beyond the context provided in the DOCUMENT. The ANSWER also must not contradict information provided in the DOCUMENT. Output your final verdict by strictly following this format: "PASS" if the answer is faithful to the DOCUMENT and "FAIL" if the answer is not faithful to the DOCUMENT. Show your reasoning.
11
  --
 
5
  import time
6
  from openai import AsyncOpenAI
7
  from jinja2 import Template
8
+ collinear = Collinear(access_token=os.getenv('COLLINEAR_API_KEY'),space_id=os.getenv('COLLINEAR_SPACE_ID'))
9
  prompt = Template("""
10
  iven the following QUESTION, DOCUMENT and ANSWER you must analyze the provided answer and determine whether it is faithful to the contents of the DOCUMENT. The ANSWER must not offer new information beyond the context provided in the DOCUMENT. The ANSWER also must not contradict information provided in the DOCUMENT. Output your final verdict by strictly following this format: "PASS" if the answer is faithful to the DOCUMENT and "FAIL" if the answer is not faithful to the DOCUMENT. Show your reasoning.
11
  --
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
  jinja2
2
  sentencepiece
3
  gradio
4
- collinear==0.1.9
 
1
  jinja2
2
  sentencepiece
3
  gradio
4
+ collinear==0.1.24