Spaces:
Running
on
A10G
Running
on
A10G
YifengDing
commited on
Commit
•
7447bf0
1
Parent(s):
bbe9c4c
Fix
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def main(
|
|
18 |
def evaluate_magicoder(
|
19 |
instruction,
|
20 |
temperature=1,
|
21 |
-
max_length=
|
22 |
):
|
23 |
MAGICODER_PROMPT = """You are an exceptionally intelligent coding assistant that consistently delivers accurate and reliable responses to user instructions.
|
24 |
|
@@ -55,7 +55,7 @@ def main(
|
|
55 |
),
|
56 |
gr.components.Slider(minimum=0, maximum=1, value=0, label="Temperature"),
|
57 |
gr.components.Slider(
|
58 |
-
minimum=1, maximum=
|
59 |
),
|
60 |
],
|
61 |
outputs=[
|
|
|
18 |
def evaluate_magicoder(
|
19 |
instruction,
|
20 |
temperature=1,
|
21 |
+
max_length=2048,
|
22 |
):
|
23 |
MAGICODER_PROMPT = """You are an exceptionally intelligent coding assistant that consistently delivers accurate and reliable responses to user instructions.
|
24 |
|
|
|
55 |
),
|
56 |
gr.components.Slider(minimum=0, maximum=1, value=0, label="Temperature"),
|
57 |
gr.components.Slider(
|
58 |
+
minimum=1, maximum=2048, step=1, value=1024, label="Max tokens"
|
59 |
),
|
60 |
],
|
61 |
outputs=[
|