Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ mdl = AutoModelForCausalLM.from_pretrained("Salesforce/codegen-350M-mono")
|
|
5 |
|
6 |
def codegen(intent):
|
7 |
# give input as text which reflects intent of the program.
|
8 |
-
|
9 |
input_ids = codegen_tkn(intent, return_tensors="pt").input_ids
|
10 |
|
11 |
gen_ids = mdl.generate(input_ids, max_length=128)
|
|
|
5 |
|
6 |
def codegen(intent):
|
7 |
# give input as text which reflects intent of the program.
|
8 |
+
text = " write a function which takes 2 numbers as input and returns the larger of the two"
|
9 |
input_ids = codegen_tkn(intent, return_tensors="pt").input_ids
|
10 |
|
11 |
gen_ids = mdl.generate(input_ids, max_length=128)
|