lysandre HF staff Wauplin HF staff commited on
Commit
194d6e2
1 Parent(s): 8ee0a79

Fix deprecation warnings and add reference to instruction part. (#2)

Browse files

- Fix deprecation warnings and add reference to instruction part. (4cd1e41fd962f2f7ceac9ee965b10a4ebbe6f1a4)


Co-authored-by: Lucain Pouget <Wauplin@users.noreply.huggingface.co>

Files changed (1) hide show
  1. app.py +13 -12
app.py CHANGED
@@ -103,26 +103,29 @@ to the defined threshold: if above, that user will get a special note mentioning
103
  """
104
 
105
  demo = gr.Interface(
 
 
 
106
  fn=get_release_notes,
107
  inputs=[
108
- gr.inputs.Textbox(lines=1, placeholder="Your GitHub token"),
109
- gr.inputs.Textbox(
110
- lines=1, placeholder="Repository", default="huggingface/transformers"
111
  ),
112
- gr.inputs.Textbox(lines=1, placeholder="The tag from which to get commit"),
113
- gr.inputs.Textbox(
114
  lines=1,
115
  placeholder="The linear branch on which the new version tag will be added",
116
- default="main",
117
  ),
118
- gr.inputs.Slider(
119
  minimum=0,
120
  maximum=2000,
121
- default=500,
122
  label="Threshold for significant contributors",
123
  ),
124
- gr.inputs.Checkbox(label="Ignore dependabot commits"),
125
- gr.inputs.Checkbox(label="Ignore direct commits"),
126
  ],
127
  outputs="text",
128
  examples=[
@@ -131,8 +134,6 @@ demo = gr.Interface(
131
  ['ghp_XXX', 'huggingface/transformers', 'v4.18.0', 'main', 500, True, True],
132
  ['ghp_XXX', 'gradio-app/gradio', 'v2.9.0', 'main', 500, True, True],
133
  ],
134
- title='Automatic release notes 🤗',
135
- article=article
136
  )
137
 
138
 
 
103
  """
104
 
105
  demo = gr.Interface(
106
+ title='Automatic release notes 🤗',
107
+ article=article,
108
+ description="**See instructions below the form.**",
109
  fn=get_release_notes,
110
  inputs=[
111
+ gr.components.Textbox(lines=1, placeholder="Your GitHub token"),
112
+ gr.components.Textbox(
113
+ lines=1, placeholder="Repository", value="huggingface/transformers"
114
  ),
115
+ gr.components.Textbox(lines=1, placeholder="The tag from which to get commit"),
116
+ gr.components.Textbox(
117
  lines=1,
118
  placeholder="The linear branch on which the new version tag will be added",
119
+ value="main",
120
  ),
121
+ gr.components.Slider(
122
  minimum=0,
123
  maximum=2000,
124
+ value=500,
125
  label="Threshold for significant contributors",
126
  ),
127
+ gr.components.Checkbox(label="Ignore dependabot commits"),
128
+ gr.components.Checkbox(label="Ignore direct commits"),
129
  ],
130
  outputs="text",
131
  examples=[
 
134
  ['ghp_XXX', 'huggingface/transformers', 'v4.18.0', 'main', 500, True, True],
135
  ['ghp_XXX', 'gradio-app/gradio', 'v2.9.0', 'main', 500, True, True],
136
  ],
 
 
137
  )
138
 
139