Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,9 +41,9 @@ g = gr.Interface(
|
|
| 41 |
inputs=[
|
| 42 |
gr.components.Dropdown(choices=model_choices, label="Model", value=model_choices[0], interactive=True),
|
| 43 |
gr.components.Textbox(lines=2, label="Prompt", value="Write me a Python program that calculates the factorial of a given number."),
|
| 44 |
-
gr.components.Slider(minimum=0, maximum=1, value=0.
|
| 45 |
gr.components.Slider(minimum=0, maximum=1, value=0.95, label="Top p"),
|
| 46 |
-
gr.components.Slider(minimum=0, maximum=100, step=1, value=
|
| 47 |
gr.components.Slider(minimum=1, maximum=2048, step=1, value=1024, label="Max tokens"),
|
| 48 |
],
|
| 49 |
outputs=[gr.Textbox(lines=10, label="Output")],
|
|
|
|
| 41 |
inputs=[
|
| 42 |
gr.components.Dropdown(choices=model_choices, label="Model", value=model_choices[0], interactive=True),
|
| 43 |
gr.components.Textbox(lines=2, label="Prompt", value="Write me a Python program that calculates the factorial of a given number."),
|
| 44 |
+
gr.components.Slider(minimum=0, maximum=1, value=0.8, label="Temperature"),
|
| 45 |
gr.components.Slider(minimum=0, maximum=1, value=0.95, label="Top p"),
|
| 46 |
+
gr.components.Slider(minimum=0, maximum=100, step=1, value=15, label="Top k"),
|
| 47 |
gr.components.Slider(minimum=1, maximum=2048, step=1, value=1024, label="Max tokens"),
|
| 48 |
],
|
| 49 |
outputs=[gr.Textbox(lines=10, label="Output")],
|