Spaces:
Sleeping
Sleeping
JakeTurner616
commited on
Update app.py
Browse files
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.
|
28 |
-
gr.
|
29 |
-
gr.
|
30 |
-
gr.
|
31 |
-
gr.
|
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()
|