misdelivery
commited on
Commit
•
6eec3a1
1
Parent(s):
5a3d034
Update app.py
Browse filesrepetition_penaltyを追加、デフォルトのtemperatureを0.3に
app.py
CHANGED
@@ -120,6 +120,7 @@ def stream_chat(
|
|
120 |
top_p = top_p,
|
121 |
top_k = top_k,
|
122 |
temperature = temperature,
|
|
|
123 |
streamer=streamer,
|
124 |
)
|
125 |
|
@@ -154,7 +155,7 @@ with gr.Blocks(css=CSS, theme="soft") as demo:
|
|
154 |
minimum=0,
|
155 |
maximum=1,
|
156 |
step=0.1,
|
157 |
-
value=0,
|
158 |
label="Temperature",
|
159 |
render=False,
|
160 |
),
|
|
|
120 |
top_p = top_p,
|
121 |
top_k = top_k,
|
122 |
temperature = temperature,
|
123 |
+
repetition_penalty = 1.05,
|
124 |
streamer=streamer,
|
125 |
)
|
126 |
|
|
|
155 |
minimum=0,
|
156 |
maximum=1,
|
157 |
step=0.1,
|
158 |
+
value=0.3,
|
159 |
label="Temperature",
|
160 |
render=False,
|
161 |
),
|