Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnboundLocalError: local variable 'pred' referenced before assignment #4

Open
SmartManoj opened this issue Mar 2, 2025 · 0 comments

Comments

@SmartManoj
Copy link

SmartManoj commented Mar 2, 2025

bash run.sh auto gpt4o humaneval

Traceback (most recent call last):
  File "/mnt/c/Users/smart/Desktop/GD/HPT/hierarchical_prompt/main.py", line 1369, in <module>
    main(args)
  File "/mnt/c/Users/smart/Desktop/GD/HPT/hierarchical_prompt/main.py", line 1353, in main
    adaptive_hp.process_dataset()
  File "/mnt/c/Users/smart/Desktop/GD/HPT/hierarchical_prompt/main.py", line 1228, in process_dataset
    level = self.select_prompt_level(item,prev)
  File "/mnt/c/Users/smart/Desktop/GD/HPT/hierarchical_prompt/main.py", line 825, in select_prompt_level
    level_txt = self.adaptive_processor(pred[0]['generated_text'])
UnboundLocalError: local variable 'pred' referenced before assignment

level_txt = self.adaptive_processor(pred[0]['generated_text'])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant