Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -254,10 +254,10 @@ interface = gr.Interface(
|
|
| 254 |
gr.Textbox(label="Chat History", placeholder="Chat history will appear here..."),
|
| 255 |
gr.Checkbox(label="Perform Web Search"),
|
| 256 |
gr.Radio(["Greedy", "Top P Sampling"], label="Decoding strategy"),
|
| 257 |
-
gr.Slider(minimum=0.0, maximum=2.0, step=0.05, label="Sampling temperature",
|
| 258 |
-
gr.Slider(minimum=1, maximum=16000, step=64, label="Maximum number of new tokens to generate",
|
| 259 |
-
gr.Slider(minimum=0.01, maximum=5.0, step=0.01, label="Repetition penalty",
|
| 260 |
-
gr.Slider(minimum=0.01, maximum=0.99, step=0.01, label="Top P",
|
| 261 |
],
|
| 262 |
outputs=gr.Textbox(label="Assistant Response"),
|
| 263 |
live=True
|
|
|
|
| 254 |
gr.Textbox(label="Chat History", placeholder="Chat history will appear here..."),
|
| 255 |
gr.Checkbox(label="Perform Web Search"),
|
| 256 |
gr.Radio(["Greedy", "Top P Sampling"], label="Decoding strategy"),
|
| 257 |
+
gr.Slider(minimum=0.0, maximum=2.0, step=0.05, label="Sampling temperature", value=0.5),
|
| 258 |
+
gr.Slider(minimum=1, maximum=16000, step=64, label="Maximum number of new tokens to generate", value=2048),
|
| 259 |
+
gr.Slider(minimum=0.01, maximum=5.0, step=0.01, label="Repetition penalty", value=1),
|
| 260 |
+
gr.Slider(minimum=0.01, maximum=0.99, step=0.01, label="Top P", value=0.9)
|
| 261 |
],
|
| 262 |
outputs=gr.Textbox(label="Assistant Response"),
|
| 263 |
live=True
|