BhanuPrakashSamoju commited on
Commit
089ac4a
1 Parent(s): 6720d2b

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -3
main.py CHANGED
@@ -12,7 +12,7 @@ os.environ["HUGGINGFACEHUB_API_TOKEN"] = "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"
12
 
13
 
14
 
15
- print("Testing teh build")
16
  # NOTE - we configure docs_url to serve the interactive Docs at the root path
17
  # of the app. This way, we can use the docs as a landing page for the app on Spaces.
18
  app = FastAPI(docs_url="/")
@@ -28,8 +28,8 @@ class BasePromptContext:
28
  self.variables_list = ["question","answer","context"]
29
  self.base_template = """Please act as an impartial judge and evaluate the quality of the provided answer which attempts to answer the provided question based on a provided context.
30
 
31
- And you'll need to submit your grading for the correctness, comprehensiveness and readability of the answer, using JSON format with the 2 items in parenthesis:
32
- json( "score": [your score number for the correctness of the answer], "reasoning": [your one line step by step reasoning about the correctness of the answer] )
33
 
34
 
35
 
 
12
 
13
 
14
 
15
+ #print("Testing teh build")
16
  # NOTE - we configure docs_url to serve the interactive Docs at the root path
17
  # of the app. This way, we can use the docs as a landing page for the app on Spaces.
18
  app = FastAPI(docs_url="/")
 
28
  self.variables_list = ["question","answer","context"]
29
  self.base_template = """Please act as an impartial judge and evaluate the quality of the provided answer which attempts to answer the provided question based on a provided context.
30
 
31
+ And you'll need to submit your grading for the correctness, comprehensiveness and readability of the answer, using JSON format with the below 2 items:
32
+ "score": [your score number for the correctness of the answer], "reasoning": [your one line step by step reasoning about the correctness of the answer]
33
 
34
 
35