acecalisto3 commited on
Commit
1518bc1
·
verified ·
1 Parent(s): 9e37002

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -80,9 +80,9 @@ def chat_interface_with_agent(input_text, agent_name):
80
  if agent_prompt is None:
81
  return f"Agent {agent_name} not found."
82
 
83
- model_name = "gpt2"
84
  try:
85
- model = AutoModelForCausalLM.from_pretrained(model_name)
86
  tokenizer = AutoTokenizer.from_pretrained(model_name)
87
  generator = pipeline("text-generation", model=model, tokenizer=tokenizer)
88
  except EnvironmentError as e:
 
80
  if agent_prompt is None:
81
  return f"Agent {agent_name} not found."
82
 
83
+ model_name = "Bin12345/AutoCoder_S_6.7B"
84
  try:
85
+ pipe = pipeline("text-generation", model="Bin12345/AutoCoder_S_6.7B")
86
  tokenizer = AutoTokenizer.from_pretrained(model_name)
87
  generator = pipeline("text-generation", model=model, tokenizer=tokenizer)
88
  except EnvironmentError as e: