acecalisto3 commited on
Commit
9e37002
1 Parent(s): a49ff15

Update code_generator.py

Browse files
Files changed (1) hide show
  1. code_generator.py +1 -4
code_generator.py CHANGED
@@ -10,10 +10,7 @@ def generate(idea):
10
  Returns:
11
  The generated code as a string.
12
  """
13
-
14
- # Load the code generation model
15
- model_name = "bigscience/T0_3B" # Use a model that works for code generation
16
- model = transformers.AutoModelForCausalLM.from_pretrained(model_name)
17
  tokenizer = transformers.AutoTokenizer.from_pretrained(model_name)
18
 
19
  # Generate the code
 
10
  Returns:
11
  The generated code as a string.
12
  """
13
+ pipe = pipeline("text-generation", model="Bin12345/AutoCoder_S_6.7B") model = transformers.AutoModelForCausalLM.from_pretrained(model_name)
 
 
 
14
  tokenizer = transformers.AutoTokenizer.from_pretrained(model_name)
15
 
16
  # Generate the code