JakeTurner616 commited on
Commit
1d56071
·
verified ·
1 Parent(s): 9e559ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -33,12 +33,14 @@ iface = gr.Interface(
33
  fn=generate_text,
34
  inputs=[
35
  gr.Textbox(lines=2, label="Input Prompt"),
36
- gr.Slider(minimum=10, maximum=300, step=10, value=100, label="Max Length"),
37
- gr.Slider(minimum=0.0, maximum=1.0, step=0.01, value=0.7, label="Temperature"),
38
- gr.Slider(minimum=0.0, maximum=1.0, step=0.01, value=0.9, label="Top P"),
39
- gr.Slider(minimum=1.0, maximum=2.0, step=0.1, value=1.1, label="Repetition Penalty")
40
  ],
41
  outputs="text",
 
 
42
  )
43
 
44
  iface.launch()
 
33
  fn=generate_text,
34
  inputs=[
35
  gr.Textbox(lines=2, label="Input Prompt"),
36
+ gr.Slider(minimum=10, maximum=300, step=10, value=40, label="Max Length"),
37
+ gr.Slider(minimum=0.0, maximum=1.0, step=0.01, value=0.75, label="Temperature"),
38
+ gr.Slider(minimum=0.0, maximum=1.0, step=0.01, value=0.6, label="Top P"),
39
+ gr.Slider(minimum=1.0, maximum=2.0, step=0.1, value=1.2, label="Repetition Penalty")
40
  ],
41
  outputs="text",
42
+ title="Cosmere Series Text Generator",
43
+ description="Adjust the sliders to control text generation parameters."
44
  )
45
 
46
  iface.launch()