Locutusque commited on
Commit
991b767
1 Parent(s): c3ce568

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -30,11 +30,11 @@ iface = gr.Interface(
30
  fn=generate_text,
31
  inputs=[
32
  gr.Textbox(label="Prompt", lines=2, placeholder="Type a prompt..."),
33
- gr.Slider(minimum=0.1, maximum=2.0, step=0.01, default=0.8, label="Temperature"),
34
- gr.Slider(minimum=0.0, maximum=1.0, step=0.01, default=0.95, label="Top p"),
35
- gr.Slider(minimum=0, maximum=100, step=1, default=40, label="Top k"),
36
- gr.Slider(minimum=1.0, maximum=2.0, step=0.01, default=1.10, label="Repetition Penalty"),
37
- gr.Slider(minimum=5, maximum=4096, step=5, default=1024, label="Max Length")
38
  ],
39
  outputs=gr.Textbox(label="Generated Text"),
40
  title="Text Completion Model",
 
30
  fn=generate_text,
31
  inputs=[
32
  gr.Textbox(label="Prompt", lines=2, placeholder="Type a prompt..."),
33
+ gr.Slider(minimum=0.1, maximum=2.0, step=0.01, value=0.8, label="Temperature"),
34
+ gr.Slider(minimum=0.0, maximum=1.0, step=0.01, value=0.95, label="Top p"),
35
+ gr.Slider(minimum=0, maximum=100, step=1, value=40, label="Top k"),
36
+ gr.Slider(minimum=1.0, maximum=2.0, step=0.01, value=1.10, label="Repetition Penalty"),
37
+ gr.Slider(minimum=5, maximum=4096, step=5, value=1024, label="Max Length")
38
  ],
39
  outputs=gr.Textbox(label="Generated Text"),
40
  title="Text Completion Model",