Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -99,7 +99,7 @@ examples = [
|
|
99 |
"[Emmanuel Macron:] - Je vois que vous avez effectué un voyage dans la région de la Gascogne.", # assistant_message
|
100 |
history, # history
|
101 |
0.4, # temperature
|
102 |
-
|
103 |
0.90, # top_p
|
104 |
1.9, # repetition_penalty
|
105 |
]
|
@@ -110,7 +110,7 @@ additional_inputs=[
|
|
110 |
gr.Slider(
|
111 |
label="Temperature",
|
112 |
value=0.7, # Default value
|
113 |
-
minimum=0.
|
114 |
maximum=1.0,
|
115 |
step=0.05,
|
116 |
interactive=True,
|
@@ -118,9 +118,9 @@ additional_inputs=[
|
|
118 |
),
|
119 |
gr.Slider(
|
120 |
label="Max new tokens",
|
121 |
-
value=
|
122 |
-
minimum=
|
123 |
-
maximum=
|
124 |
step=1,
|
125 |
interactive=True,
|
126 |
info="The maximum numbers of new tokens",
|
@@ -136,7 +136,7 @@ additional_inputs=[
|
|
136 |
),
|
137 |
gr.Slider(
|
138 |
label="Repetition penalty",
|
139 |
-
value=1.
|
140 |
minimum=1.0,
|
141 |
maximum=2.0,
|
142 |
step=0.05,
|
|
|
99 |
"[Emmanuel Macron:] - Je vois que vous avez effectué un voyage dans la région de la Gascogne.", # assistant_message
|
100 |
history, # history
|
101 |
0.4, # temperature
|
102 |
+
200, # max_new_tokens
|
103 |
0.90, # top_p
|
104 |
1.9, # repetition_penalty
|
105 |
]
|
|
|
110 |
gr.Slider(
|
111 |
label="Temperature",
|
112 |
value=0.7, # Default value
|
113 |
+
minimum=0.05,
|
114 |
maximum=1.0,
|
115 |
step=0.05,
|
116 |
interactive=True,
|
|
|
118 |
),
|
119 |
gr.Slider(
|
120 |
label="Max new tokens",
|
121 |
+
value=100, # Default value
|
122 |
+
minimum=25,
|
123 |
+
maximum=256,
|
124 |
step=1,
|
125 |
interactive=True,
|
126 |
info="The maximum numbers of new tokens",
|
|
|
136 |
),
|
137 |
gr.Slider(
|
138 |
label="Repetition penalty",
|
139 |
+
value=1.9,
|
140 |
minimum=1.0,
|
141 |
maximum=2.0,
|
142 |
step=0.05,
|