Spaces:
Runtime error
Runtime error
Update app.py
Browse files17 unmodified lines18192021222369 unmodified lines9394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513643 unmodified lines18018118218318417 unmodified linesFIM_INDICATOR = "<FILL_HERE>"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### 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")with gr.Box():output = gr.Code(elem_id="q-output")submit = gr.Button("Generate", variant="primary")gr.Examples(examples=examples,inputs=[instruction],43 unmodified linessubmit.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])demo.queue(concurrency_count=16).launch(debug=True)17 unmodified lines181920212223242526272829303132333435363738394041424344454647484950515269 unmodified lines12212312412512612712812913013113213313413513613713813914014143 unmodified lines18518618718818917 unmodified linesFIM_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.\""")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")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 linessubmit.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