ParthBhuptani commited on
Commit
2934c74
·
verified ·
1 Parent(s): a2e175e

Update agents/error_fixer.py

Browse files
Files changed (1) hide show
  1. agents/error_fixer.py +3 -3
agents/error_fixer.py CHANGED
@@ -1,7 +1,7 @@
1
- from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, pipeline,EncoderDecoderConfig
2
 
3
- tokenizer = AutoTokenizer.from_pretrained("codellama/CodeLlama-34b-Instruct-hf")
4
- model = EncoderDecoderConfig.from_pretrained("codellama/CodeLlama-34b-Instruct-hf")
5
  fix_pipeline = pipeline("text2text-generation", model=model, tokenizer=tokenizer)
6
 
7
  def fix_code(code: str) -> str:
 
1
+ from transformers import AutoTokenizer, AutoModelForSeq2SeqLM, pipeline
2
 
3
+ tokenizer = AutoTokenizer.from_pretrained("Salesforce/codet5-small")
4
+ model = AutoModelForSeq2SeqLM.from_pretrained("Salesforce/codet5-small")
5
  fix_pipeline = pipeline("text2text-generation", model=model, tokenizer=tokenizer)
6
 
7
  def fix_code(code: str) -> str: