Locutusque commited on
Commit
634313c
·
verified ·
1 Parent(s): b3c588d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.4, 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=50, 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")],
 
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")],