kz209 commited on
Commit
b9e79ed
1 Parent(s): 18784a2

add content

Browse files
Files changed (1) hide show
  1. utils/model.py +2 -2
utils/model.py CHANGED
@@ -16,9 +16,9 @@ class Model():
16
  device_map="auto",
17
  )
18
 
19
- def gen(self, prompt, temp=0.0, max_length=200):
20
  sequences = self.pipeline(
21
- "Girafatron is obsessed with giraffes, the most glorious animal on the face of this Earth. Giraftron believes all other animals are irrelevant when compared to the glorious majesty of the giraffe.\nDaniel: Hello, Girafatron!\nGirafatron:",
22
  max_length=max_length,
23
  do_sample=False,
24
  temperature=temp,
 
16
  device_map="auto",
17
  )
18
 
19
+ def gen(self, content, temp=0.0, max_length=200):
20
  sequences = self.pipeline(
21
+ content,
22
  max_length=max_length,
23
  do_sample=False,
24
  temperature=temp,