Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -252,12 +252,12 @@ interface = gr.Interface(
|
|
252 |
inputs=[
|
253 |
gr.Textbox(label="User Input", placeholder="Type your message here..."),
|
254 |
gr.Textbox(label="Chat History", placeholder="Chat history will appear here..."),
|
255 |
-
gr.Checkbox(label="Perform Web Search"
|
256 |
-
|
257 |
-
temperature,
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
],
|
262 |
outputs=gr.Textbox(label="Assistant Response"),
|
263 |
live=True,
|
|
|
252 |
inputs=[
|
253 |
gr.Textbox(label="User Input", placeholder="Type your message here..."),
|
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, default=0.5, label="Sampling temperature"),
|
258 |
+
gr.Slider(minimum=1, maximum=16000, default=2048, step=64, label="Maximum number of new tokens to generate"),
|
259 |
+
gr.Slider(minimum=0.01, maximum=5.0, default=1, step=0.01, label="Repetition penalty"),
|
260 |
+
gr.Slider(minimum=0.01, maximum=0.99, default=0.9, step=0.01, label="Top P")
|
261 |
],
|
262 |
outputs=gr.Textbox(label="Assistant Response"),
|
263 |
live=True,
|