lucifertrj commited on
Commit
087e3bf
·
1 Parent(s): 0431277

add title, desc and article

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -36,6 +36,15 @@ relation_list = [' Husband',' Not-in-family',' Wife',' Own-child',' Unmarried','
36
  occupation_list = [' Exec-managerial',' Handlers-cleaners',' Prof-specialty',' Other-service',' Adm-clerical',' Sales',' Craft-repair',' Transport-moving',' Farming-fishing',' Machine-op-inspct',' Tech-support',' ?',' Protective-serv',' Armed-Forces',' Priv-house-serv']
37
  countries = [' United-States',' Cuba',' Jamaica',' India',' Mexico',' South',' Puerto-Rico',' Honduras',' England',' Canada',' Germany',' Iran',' Philippines',' Italy',' Poland',' Columbia',' Cambodia',' Thailand',' Ecuador',' Laos',' Taiwan',' Haiti',' Portugal',' Dominican-Republic',' El-Salvador',' France',' Guatemala',' China',' Japan',' Yugoslavia',' Peru',' Outlying-US(Guam-USVI-etc)',' Scotland',' Trinadad&Tobago',' Greece',' Nicaragua',' Vietnam',' Hong',' Ireland',' Hungary',' Holand-Netherlands']
38
 
 
 
 
 
 
 
 
 
 
39
  demo = gr.Interface(
40
  predict,
41
  [
@@ -55,6 +64,9 @@ demo = gr.Interface(
55
  gr.Dropdown(countries),
56
  ],
57
  "text",
 
 
 
58
  examples=
59
  [
60
  [35,' Private',5000,' Masters',8,' Divorced',' Tech-support',' Husband',' White',' Male',6000,0,40,' Germany'],
 
36
  occupation_list = [' Exec-managerial',' Handlers-cleaners',' Prof-specialty',' Other-service',' Adm-clerical',' Sales',' Craft-repair',' Transport-moving',' Farming-fishing',' Machine-op-inspct',' Tech-support',' ?',' Protective-serv',' Armed-Forces',' Priv-house-serv']
37
  countries = [' United-States',' Cuba',' Jamaica',' India',' Mexico',' South',' Puerto-Rico',' Honduras',' England',' Canada',' Germany',' Iran',' Philippines',' Italy',' Poland',' Columbia',' Cambodia',' Thailand',' Ecuador',' Laos',' Taiwan',' Haiti',' Portugal',' Dominican-Republic',' El-Salvador',' France',' Guatemala',' China',' Japan',' Yugoslavia',' Peru',' Outlying-US(Guam-USVI-etc)',' Scotland',' Trinadad&Tobago',' Greece',' Nicaragua',' Vietnam',' Hong',' Ireland',' Hungary',' Holand-Netherlands']
38
 
39
+ title = "Deep Neural Decision Forest"
40
+ description = "This example uses the United States Census Income Dataset provided by the UC Irvine Machine Learning Repository. The task is binary classification to predict whether a person is likely to be making over USD 50,000 a year."
41
+ article = """<p style='text-align: center'>
42
+ <a href='https://keras.io/examples/structured_data/deep_neural_decision_forests/' target='_blank'>Keras Example given by Khalid Salama</a>
43
+ <br/>
44
+ <a href="https://huggingface.co/lucifertrj">Space by @lucifertrj</a>
45
+ </p>
46
+ """https://huggingface.co/lucifertrj
47
+
48
  demo = gr.Interface(
49
  predict,
50
  [
 
64
  gr.Dropdown(countries),
65
  ],
66
  "text",
67
+ title = title,
68
+ description = description,
69
+ article = article,
70
  examples=
71
  [
72
  [35,' Private',5000,' Masters',8,' Divorced',' Tech-support',' Husband',' White',' Male',6000,0,40,' Germany'],