Spaces:
Sleeping
Sleeping
YifengDing
commited on
Commit
•
1ae9bce
1
Parent(s):
ff68452
minor
Browse files
app.py
CHANGED
@@ -70,7 +70,7 @@ def main(
|
|
70 |
max_new_tokens = gr.Slider(
|
71 |
minimum=1, maximum=2048, step=1, value=2048, label="Max tokens"
|
72 |
)
|
73 |
-
submit = gr.Button(
|
74 |
gr.Examples(
|
75 |
examples=[
|
76 |
["Write a snake game in Python using the turtle library (the game is created by Magicoder)."],
|
@@ -89,7 +89,7 @@ def main(
|
|
89 |
inputs=[interface_input, temperature, max_new_tokens],
|
90 |
outputs=[output],
|
91 |
)
|
92 |
-
demo.queue().launch(
|
93 |
|
94 |
if __name__ == "__main__":
|
95 |
fire.Fire(main)
|
|
|
70 |
max_new_tokens = gr.Slider(
|
71 |
minimum=1, maximum=2048, step=1, value=2048, label="Max tokens"
|
72 |
)
|
73 |
+
submit = gr.Button(value="Generate")
|
74 |
gr.Examples(
|
75 |
examples=[
|
76 |
["Write a snake game in Python using the turtle library (the game is created by Magicoder)."],
|
|
|
89 |
inputs=[interface_input, temperature, max_new_tokens],
|
90 |
outputs=[output],
|
91 |
)
|
92 |
+
demo.queue().launch()
|
93 |
|
94 |
if __name__ == "__main__":
|
95 |
fire.Fire(main)
|