Spaces:
Sleeping
Sleeping
howard-hou
commited on
Commit
•
43e9368
1
Parent(s):
b9bf03b
Update app.py
Browse files
app.py
CHANGED
@@ -41,8 +41,8 @@ def generate(
|
|
41 |
token_count=200,
|
42 |
temperature=0.2,
|
43 |
top_p=0.3,
|
44 |
-
presencePenalty = 0.
|
45 |
-
countPenalty = 0
|
46 |
):
|
47 |
args = PIPELINE_ARGS(temperature = max(0.2, float(temperature)), top_p = float(top_p),
|
48 |
alpha_frequency = countPenalty,
|
|
|
41 |
token_count=200,
|
42 |
temperature=0.2,
|
43 |
top_p=0.3,
|
44 |
+
presencePenalty = 0.0,
|
45 |
+
countPenalty = 1.0,
|
46 |
):
|
47 |
args = PIPELINE_ARGS(temperature = max(0.2, float(temperature)), top_p = float(top_p),
|
48 |
alpha_frequency = countPenalty,
|