Spaces:
Runtime error
Runtime error
Update app.py
Browse files17 unmodified lines181920212223242526272829303132333435363738394041424344454647484950515269 unmodified lines12212312496979812512612710010110210310410510610710810911011111211311411511611711811912012112212312412512812913013113013213313413313513613713813914014143 unmodified lines18518618718318818917 unmodified lines
FIM_INDICATOR = "<FILL_HERE>"
FORMATS = """## Model formats
### PrefixesAny combination of the three:
```<reponame>REPONAME<filename>FILENAME<gh_stars>STARS\nCode<eos>```Stars be: 0, 1-10, 10-100, 100-1000, 1000+
### Commits
```<commit_before>code<commit_msg>text<commit_after>code<|endoftext|>```
### Jupyter structure
```<start_jupyter><jupyter_text>text<jupyter_code>code<jupyter_output>output<jupyter_text>```
### Fill-in-the-middle
```code before<FILL_HERE>code after```"""
theme = gr.themes.Monochrome( primary_hue="indigo", secondary_hue="blue",69 unmodified lines """\# BigCode - Playground
_Note:_ this is an internal playground - please do not share. The deployment can also change and thus the space not work as we continue development.
## Model formats_Note:_ this is an internal playground - please do not share. The deployment can also change and thus the space not work as we continue development.\"""
### PrefixesAny combination of the three:
```<reponame>REPONAME<filename>FILENAME<gh_stars>STARS\nCode<eos>```Stars be: 0, 1-10, 10-100, 100-1000, 1000+
### Commits
```<commit_before>code<commit_msg>text<commit_after>code<|endoftext|>```
### Jupyter structure
```<start_jupyter><jupyter_text>text<jupyter_code>code<jupyter_output>output<jupyter_text>```
### Fill-in-the-middle
```code before<FILL_HERE>code after``` """ ) with gr.Row(): with gr.Column(scale=3): instruction = gr.Textbox(placeholder="Enter your prompt here", label="Prompt", elem_id="q-input")
submit = gr.Button("Generate", variant="primary") with gr.Box(): output = gr.Code(elem_id="q-output") submit = gr.Button("Generate", variant="primary") with gr.Group(elem_id="share-btn-container"): community_icon = gr.HTML(community_icon_html, visible=True) loading_icon = gr.HTML(loading_icon_html, visible=True) share_button = gr.Button("Share to community", elem_id="share-btn", visible=True) gr.Examples( examples=examples, inputs=[instruction],43 unmodified lines
submit.click(generate, inputs=[instruction, temperature, max_new_tokens, top_p, repetition_penalty], outputs=[output]) instruction.submit(generate, inputs=[instruction, temperature, max_new_tokens, top_p, repetition_penalty], outputs=[output])
share_button.click(None, [], [], _js=share_js)demo.queue(concurrency_count=16).launch(debug=True)app.py+37-32