mirror of
https://github.com/elder-plinius/AutoTemp.git
synced 2026-02-12 17:22:46 +00:00
Update autotemp.py
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user