Spaces:
Sleeping
Sleeping
Commit
•
c238180
1
Parent(s):
6cf9cca
Update app.py
Browse files
app.py
CHANGED
@@ -25,14 +25,14 @@ 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,
|
29 |
-
gr.Slider(minimum=0.0, maximum=1.0, step=0.1,
|
30 |
-
gr.Slider(minimum=0.0, maximum=1.0, step=0.1,
|
31 |
-
gr.Slider(minimum=1.0, maximum=2.0, step=0.1,
|
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
|
|
|
25 |
fn=generate_text,
|
26 |
inputs=[
|
27 |
gr.Textbox(lines=2, label="Input Prompt"),
|
28 |
+
gr.Slider(minimum=10, maximum=300, step=10, value=100, label="Max Length"),
|
29 |
+
gr.Slider(minimum=0.0, maximum=1.0, step=0.1, value=0.7, label="Temperature"),
|
30 |
+
gr.Slider(minimum=0.0, maximum=1.0, step=0.1, value=0.9, label="Top P"),
|
31 |
+
gr.Slider(minimum=1.0, maximum=2.0, step=0.1, value=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
|