Spaces:
Sleeping
Sleeping
youzarsiph
commited on
Commit
·
049bc65
1
Parent(s):
9addef6
update system message
Browse files
app.py
CHANGED
@@ -58,10 +58,31 @@ star_coder = gr.ChatInterface(
|
|
58 |
description="Star Coder 2 is a code assistant trained on 15B parameters and 100K lines of code. "
|
59 |
"It is a powerful code assistant that can help you write and debug code, as well as explain code to others.",
|
60 |
additional_inputs=[
|
61 |
-
gr.Textbox(
|
62 |
-
|
63 |
-
|
64 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
],
|
66 |
)
|
67 |
|
|
|
58 |
description="Star Coder 2 is a code assistant trained on 15B parameters and 100K lines of code. "
|
59 |
"It is a powerful code assistant that can help you write and debug code, as well as explain code to others.",
|
60 |
additional_inputs=[
|
61 |
+
gr.Textbox(
|
62 |
+
value="You are a friendly senior software engineer.",
|
63 |
+
label="System message",
|
64 |
+
),
|
65 |
+
gr.Slider(
|
66 |
+
minimum=1,
|
67 |
+
maximum=2048,
|
68 |
+
value=512,
|
69 |
+
step=1,
|
70 |
+
label="Max new tokens",
|
71 |
+
),
|
72 |
+
gr.Slider(
|
73 |
+
minimum=0.1,
|
74 |
+
maximum=4.0,
|
75 |
+
value=0.7,
|
76 |
+
step=0.1,
|
77 |
+
label="Temperature",
|
78 |
+
),
|
79 |
+
gr.Slider(
|
80 |
+
minimum=0.1,
|
81 |
+
maximum=1.0,
|
82 |
+
value=0.95,
|
83 |
+
step=0.05,
|
84 |
+
label="Top-p",
|
85 |
+
),
|
86 |
],
|
87 |
)
|
88 |
|