JakeTurner616 commited on
Commit
6cf9cca
·
verified ·
1 Parent(s): 1715e8a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -24,17 +24,16 @@ def generate_text(prompt, max_length, temperature, top_p, repetition_penalty):
24
  iface = gr.Interface(
25
  fn=generate_text,
26
  inputs=[
27
- gr.inputs.Textbox(lines=2, label="Input Prompt"),
28
- gr.inputs.Slider(minimum=10, maximum=300, step=10, default=100, label="Max Length"),
29
- gr.inputs.Slider(minimum=0.0, maximum=1.0, step=0.1, default=0.7, label="Temperature"),
30
- gr.inputs.Slider(minimum=0.0, maximum=1.0, step=0.1, default=0.9, label="Top P"),
31
- gr.inputs.Slider(minimum=1.0, maximum=2.0, step=0.1, default=1.1, label="Repetition Penalty"),
32
  ],
33
  outputs="text",
34
  title="Cosmere Series Text Generator",
35
  description="Adjust the sliders to control text generation parameters.",
36
  )
37
 
38
-
39
  # Launch the interface
40
  iface.launch()
 
24
  iface = gr.Interface(
25
  fn=generate_text,
26
  inputs=[
27
+ gr.Textbox(lines=2, label="Input Prompt"),
28
+ gr.Slider(minimum=10, maximum=300, step=10, default=100, label="Max Length"),
29
+ gr.Slider(minimum=0.0, maximum=1.0, step=0.1, default=0.7, label="Temperature"),
30
+ gr.Slider(minimum=0.0, maximum=1.0, step=0.1, default=0.9, label="Top P"),
31
+ gr.Slider(minimum=1.0, maximum=2.0, step=0.1, default=1.1, label="Repetition Penalty"),
32
  ],
33
  outputs="text",
34
  title="Cosmere Series Text Generator",
35
  description="Adjust the sliders to control text generation parameters.",
36
  )
37
 
 
38
  # Launch the interface
39
  iface.launch()