Rahul-8799 commited on
Commit
21eeb05
·
verified ·
1 Parent(s): 7afbbaa

Update agents/software_engineer_agent.py

Browse files
Files changed (1) hide show
  1. agents/software_engineer_agent.py +1 -1
agents/software_engineer_agent.py CHANGED
@@ -14,7 +14,7 @@ model = AutoModelForCausalLM.from_pretrained(
14
  def run(state: dict) -> dict:
15
  """Software Engineer generates code from architecture specification"""
16
  messages = state["messages"]
17
- prompt = messages[-1]["content"]
18
 
19
  input_ids = tokenizer(prompt, return_tensors="pt").input_ids.to(model.device)
20
  output_ids = model.generate(input_ids, max_new_tokens=3000)
 
14
  def run(state: dict) -> dict:
15
  """Software Engineer generates code from architecture specification"""
16
  messages = state["messages"]
17
+ prompt = messages[-1].content
18
 
19
  input_ids = tokenizer(prompt, return_tensors="pt").input_ids.to(model.device)
20
  output_ids = model.generate(input_ids, max_new_tokens=3000)