davanstrien HF staff commited on
Commit
1ebedb6
1 Parent(s): 9d2346f

Add title and description to the interface

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -232,6 +232,8 @@ def predict_language(
232
  return predictions
233
 
234
 
 
 
235
  inputs = [
236
  gr.Text(label="dataset id"),
237
  gr.Textbox(
@@ -240,6 +242,12 @@ inputs = [
240
  ),
241
  gr.Textbox(None, label="split"),
242
  ]
243
- interface = gr.Interface(predict_language, inputs=inputs, outputs="json")
 
 
 
 
 
 
244
  interface.queue()
245
  interface.launch()
 
232
  return predictions
233
 
234
 
235
+ app_title = "Dataset Language Detection"
236
+ app_description = "Detect the language of a dataset on the Hub"
237
  inputs = [
238
  gr.Text(label="dataset id"),
239
  gr.Textbox(
 
242
  ),
243
  gr.Textbox(None, label="split"),
244
  ]
245
+ interface = gr.Interface(
246
+ predict_language,
247
+ inputs=inputs,
248
+ outputs="json",
249
+ title=app_title,
250
+ article=app_description,
251
+ )
252
  interface.queue()
253
  interface.launch()