Spaces:
Runtime error
Runtime error
Commit
·
65a009c
1
Parent(s):
9e704ea
feat: demo instruction
Browse files
app.py
CHANGED
|
@@ -51,10 +51,11 @@ def main(
|
|
| 51 |
lines=3,
|
| 52 |
label="Instruction",
|
| 53 |
placeholder="Anything you want to ask Magicoder ?",
|
|
|
|
| 54 |
),
|
| 55 |
gr.components.Slider(minimum=0, maximum=1, value=0, label="Temperature"),
|
| 56 |
gr.components.Slider(
|
| 57 |
-
minimum=1, maximum=2048, step=1, value=
|
| 58 |
),
|
| 59 |
],
|
| 60 |
outputs=[
|
|
@@ -63,7 +64,7 @@ def main(
|
|
| 63 |
label="Output",
|
| 64 |
)
|
| 65 |
],
|
| 66 |
-
title="Magicoder",
|
| 67 |
description="This is a playground for Magicoder-S-DS-6.7B! Follow us on Github: https://github.com/ise-uiuc/magicoder and Huggingface: https://huggingface.co/ise-uiuc.",
|
| 68 |
).queue().launch()
|
| 69 |
|
|
|
|
| 51 |
lines=3,
|
| 52 |
label="Instruction",
|
| 53 |
placeholder="Anything you want to ask Magicoder ?",
|
| 54 |
+
value="Write a snake game in Python using the turtle library (the game is created by Magicoder).",
|
| 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=2048, label="Max tokens"
|
| 59 |
),
|
| 60 |
],
|
| 61 |
outputs=[
|
|
|
|
| 64 |
label="Output",
|
| 65 |
)
|
| 66 |
],
|
| 67 |
+
title="🎩 Magicoder",
|
| 68 |
description="This is a playground for Magicoder-S-DS-6.7B! Follow us on Github: https://github.com/ise-uiuc/magicoder and Huggingface: https://huggingface.co/ise-uiuc.",
|
| 69 |
).queue().launch()
|
| 70 |
|