Arafath10 commited on
Commit
7cbd08f
·
verified ·
1 Parent(s): e7eb65e

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +7 -7
main.py CHANGED
@@ -104,19 +104,19 @@ async def get_data(input_file: UploadFile = File(...)):
104
 
105
  Example Output:
106
  [
107
- "firstname" : firstname,
108
- "lastname" : lastname,
109
- "contact_number" : contact number
110
- "total_years_of_experience" : total years of experience,
111
- "LinkedIn_link" : LinkedIn link,
112
- "experience" : experience,
113
  "skills" : skills
114
  ]
115
  """
116
 
117
  response = model_text.generate_content(prompt)
118
  print(response.text)
119
- data = json.loads(response.text.replace("```json", "").replace("```", ""))
120
  return {"data": data}
121
 
122
  #except Exception as e:
 
104
 
105
  Example Output:
106
  [
107
+ "firstname" : "firstname",
108
+ "lastname" : "lastname",
109
+ "contact_number" : "contact number"
110
+ "total_years_of_experience" : "total years of experience",
111
+ "LinkedIn_link" : "LinkedIn link",
112
+ "experience" : "experience",
113
  "skills" : skills
114
  ]
115
  """
116
 
117
  response = model_text.generate_content(prompt)
118
  print(response.text)
119
+ data = json.loads(response.text.replace("``` JSON", "").replace("```", ""))
120
  return {"data": data}
121
 
122
  #except Exception as e: