ccm commited on
Commit
39c4396
β€’
1 Parent(s): 9120b3c

More model options

Browse files
Files changed (3) hide show
  1. .gitignore +3 -0
  2. README.md +1 -1
  3. app.py +1 -1
.gitignore CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  # Byte-compiled / optimized / DLL files
2
  __pycache__/
3
  *.py[cod]
 
1
+ # Pycharm
2
+ .idea
3
+
4
  # Byte-compiled / optimized / DLL files
5
  __pycache__/
6
  *.py[cod]
README.md CHANGED
@@ -1,7 +1,7 @@
1
  ---
2
  title: Cite Diversely
3
  emoji: πŸŽ“
4
- colorFrom: orange
5
  colorTo: gray
6
  sdk: streamlit
7
  sdk_version: 1.10.0 # The latest supported version
 
1
  ---
2
  title: Cite Diversely
3
  emoji: πŸŽ“
4
+ colorFrom: yellow
5
  colorTo: gray
6
  sdk: streamlit
7
  sdk_version: 1.10.0 # The latest supported version
app.py CHANGED
@@ -34,7 +34,7 @@ class References(object):
34
  def infer_ethnicity(self):
35
  self.raw_results = ethnicolr.pred_census_ln(self.raw_results, 'Last Name', 2010)
36
  self.raw_results['Most Likely Ethnicity'] = self.raw_results['race']
37
- self.raw_results.drop(labels=['race', 'white', 'black', 'hispanic', 'api'])
38
 
39
  for i in self.raw_results['Most Likely Ethnicity']:
40
  self.ethnicity_results[i] = self.ethnicity_results.get(i, 0) + 1
 
34
  def infer_ethnicity(self):
35
  self.raw_results = ethnicolr.pred_census_ln(self.raw_results, 'Last Name', 2010)
36
  self.raw_results['Most Likely Ethnicity'] = self.raw_results['race']
37
+ self.raw_results.drop(columns=['race', 'white', 'black', 'hispanic', 'api'])
38
 
39
  for i in self.raw_results['Most Likely Ethnicity']:
40
  self.ethnicity_results[i] = self.ethnicity_results.get(i, 0) + 1