heymenn commited on
Commit
84d9c6a
·
verified ·
1 Parent(s): 57d6888

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -40,12 +40,12 @@ class TechnologyData(BaseModel):
40
  @app.post("/process", response_model=TechnologyData)
41
  async def process(data: InputData):
42
  result = process_input(data, global_tech, global_tech_embeddings, "problem")
43
- return {"technologies": result, "prior_art": prior_art}
44
 
45
  @app.post("/process-constraints", response_model=TechnologyData)
46
  async def process_constraints(constraints: InputConstraints):
47
  result = process_input(constraints.constraints, global_tech, global_tech_embeddings, "constraints")
48
- return {"technologies": result, "prior_art": prior_art}
49
 
50
  @app.post("/prior-art-constraints", response_model=PriorArt)
51
  async def prior_art_search(technologies: TechnologyData, constraints: InputConstraints, type: str):
 
40
  @app.post("/process", response_model=TechnologyData)
41
  async def process(data: InputData):
42
  result = process_input(data, global_tech, global_tech_embeddings, "problem")
43
+ return {"technologies": result}
44
 
45
  @app.post("/process-constraints", response_model=TechnologyData)
46
  async def process_constraints(constraints: InputConstraints):
47
  result = process_input(constraints.constraints, global_tech, global_tech_embeddings, "constraints")
48
+ return {"technologies": result}
49
 
50
  @app.post("/prior-art-constraints", response_model=PriorArt)
51
  async def prior_art_search(technologies: TechnologyData, constraints: InputConstraints, type: str):