Spaces:
Runtime error
Runtime error
ashioyajotham
commited on
Commit
•
e390ac2
1
Parent(s):
f3676ad
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ prompt = "Generate a Python script to add prime numbers between one and ten"
|
|
11 |
|
12 |
inputs = tokenizer.encode(prompt, return_tensors='pt')
|
13 |
|
14 |
-
outputs =
|
15 |
|
16 |
completion = tokenizer.decode(outputs[0])
|
17 |
|
|
|
11 |
|
12 |
inputs = tokenizer.encode(prompt, return_tensors='pt')
|
13 |
|
14 |
+
outputs = fine_tuned_model.generate(inputs, max_length=100, temperature = .7, do_sample=True, pad_token_id=tokenizer.eos_token_id)
|
15 |
|
16 |
completion = tokenizer.decode(outputs[0])
|
17 |
|