tree-of-thoughts icon indicating copy to clipboard operation
tree-of-thoughts copied to clipboard

UnboundLocalError: local variable 'prompt'

Open AshVR opened this issue 1 year ago • 2 comments

Getting this error from the example.py

\tree-of-thoughts\tree_of_thoughts\treeofthoughts.py", line 144, in evaluate_states prompt = f"Given the current state of reasoning: '{state_text}', evaluate its value as a float between 0 and 1, on the probability of this state of reasoning achieveing {prompt} and NOTHING ELSE:" UnboundLocalError: local variable 'prompt' referenced before assignment

AshVR avatar May 25 '23 16:05 AshVR