Update autotemp.py

This commit is contained in:
pliny
2023-11-03 19:21:08 -07:00
committed by GitHub
parent 9a2144b42a
commit 96924b48ff

View File

@@ -56,7 +56,7 @@ class AutoTemp:
output_text = self.generate_with_chat(prompt, temp)
if output_text:
outputs[temp] = output_text
eval_prompt = f"You are a task output evaluator. Rate the quality of the following output on a scale from 0 to 1000. Output only an integer. The output is: {output_text}"
eval_prompt = f"You are a task output evaluator. Rate the quality of the following output on a scale from 0 to 100. Output only an integer. The output is: {output_text}"
score_text = self.generate_with_chat(eval_prompt, 0)
score_match = re.search(r'\d+', score_text)
if score_match: