Spaces:
Sleeping
Sleeping
kz209
commited on
Commit
•
b9e79ed
1
Parent(s):
18784a2
add content
Browse files- 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,
|
20 |
sequences = self.pipeline(
|
21 |
-
|
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,
|