Spaces:
Running
Running
Fix deprecation warnings and add reference to instruction part.
#2
by Wauplin HF Staff - opened
102 unmodified lines1031041051061071081091101111121131141151161171181191201211221231241251261271282 unmodified lines131132133134135136137138102 unmodified lines"""demo = gr.Interface(fn=get_release_notes,inputs=[gr.inputs.Textbox(lines=1, placeholder="Your GitHub token"),gr.inputs.Textbox(lines=1, placeholder="Repository", default="huggingface/transformers"),gr.inputs.Textbox(lines=1, placeholder="The tag from which to get commit"),gr.inputs.Textbox(lines=1,placeholder="The linear branch on which the new version tag will be added",default="main",),gr.inputs.Slider(minimum=0,maximum=2000,default=500,label="Threshold for significant contributors",),gr.inputs.Checkbox(label="Ignore dependabot commits"),gr.inputs.Checkbox(label="Ignore direct commits"),],outputs="text",examples=[2 unmodified lines['ghp_XXX', 'huggingface/transformers', 'v4.18.0', 'main', 500, True, True],['ghp_XXX', 'gradio-app/gradio', 'v2.9.0', 'main', 500, True, True],],title='Automatic release notes 🤗',article=article)102 unmodified lines1031041051061071081091101111121131141151161171181191201211221231241251261271281291301312 unmodified lines134135136137138139102 unmodified lines"""demo = gr.Interface(title='Automatic release notes 🤗',article=article,description="**See instructions below the form.**",fn=get_release_notes,inputs=[gr.components.Textbox(lines=1, placeholder="Your GitHub token"),gr.components.Textbox(lines=1, placeholder="Repository", value="huggingface/transformers"),gr.components.Textbox(lines=1, placeholder="The tag from which to get commit"),gr.components.Textbox(lines=1,placeholder="The linear branch on which the new version tag will be added",value="main",),gr.components.Slider(minimum=0,maximum=2000,value=500,label="Threshold for significant contributors",),gr.components.Checkbox(label="Ignore dependabot commits"),gr.components.Checkbox(label="Ignore direct commits"),],outputs="text",examples=[2 unmodified lines['ghp_XXX', 'huggingface/transformers', 'v4.18.0', 'main', 500, True, True],['ghp_XXX', 'gradio-app/gradio', 'v2.9.0', 'main', 500, True, True],],)
app.py+13-12