mrfirdauss commited on
Commit
977de9d
·
verified ·
1 Parent(s): 1f05f01

add links

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -128,13 +128,18 @@ def predict(text):
128
  data = list(zip(tokens, predictions))
129
  profile = {
130
  "name": "",
 
131
  "skills": [],
132
  "experiences": [],
133
  "educations": []
134
  }
135
  profile['name'] = ' '.join([t for t, p in data if p.endswith('NAME')])
 
136
  for skills in process_tokens(data, 'SKILLS'):
137
  profile['skills'].append(skills['text'])
 
 
 
138
  # Process experiences and education
139
  for designation, company, experience_desc in zip(process_tokens(data, 'DESIGNATION'),process_tokens(data, 'CAMPUS'),process_tokens(data, 'EXPERIENCES DESC') ):
140
  profile['experiences'].append({
 
128
  data = list(zip(tokens, predictions))
129
  profile = {
130
  "name": "",
131
+ "links": [],
132
  "skills": [],
133
  "experiences": [],
134
  "educations": []
135
  }
136
  profile['name'] = ' '.join([t for t, p in data if p.endswith('NAME')])
137
+
138
  for skills in process_tokens(data, 'SKILLS'):
139
  profile['skills'].append(skills['text'])
140
+ #Links
141
+ for links in process_tokens(data, 'URL'):
142
+ profile['URL'].append(links['text'])
143
  # Process experiences and education
144
  for designation, company, experience_desc in zip(process_tokens(data, 'DESIGNATION'),process_tokens(data, 'CAMPUS'),process_tokens(data, 'EXPERIENCES DESC') ):
145
  profile['experiences'].append({