JakeTurner616
commited on
Update app.py
Browse files
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=
|
37 |
-
gr.Slider(minimum=0.0, maximum=1.0, step=0.01, value=0.
|
38 |
-
gr.Slider(minimum=0.0, maximum=1.0, step=0.01, value=0.
|
39 |
-
gr.Slider(minimum=1.0, maximum=2.0, step=0.1, value=1.
|
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()
|