Vaibhav84 commited on
Commit
3ea7261
·
1 Parent(s): 59da293
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -129,12 +129,12 @@ def ExtractSkills(skill_data: SkillDetails):
129
  from datetime import datetime
130
  from typing import Union
131
  class Item(BaseModel):
132
- title: str
133
- description: Union[str, None] = None
134
 
135
  @app.post("/getProfileMatchResultsByName/{id}")
136
  def getProfileMatchResultsByName(id: str):
137
- item: Item=Item
138
  item.title ='test'
139
  item.description = 'desc'
140
  json_compatible_item_data = jsonable_encoder(item)
 
129
  from datetime import datetime
130
  from typing import Union
131
  class Item(BaseModel):
132
+ title: str ='Test'
133
+ description: str = 'Desc'
134
 
135
  @app.post("/getProfileMatchResultsByName/{id}")
136
  def getProfileMatchResultsByName(id: str):
137
+ item: Item
138
  item.title ='test'
139
  item.description = 'desc'
140
  json_compatible_item_data = jsonable_encoder(item)