heymenn commited on
Commit
12445b5
·
verified ·
1 Parent(s): 77bc6cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -15,7 +15,7 @@ class InputData(BaseModel):
15
  problem: str
16
 
17
  class InputConstraints(BaseModel):
18
- data: Dict[str, str]
19
 
20
  class OutputData(BaseModel):
21
  technologies: list
@@ -27,7 +27,7 @@ async def process(data: InputData):
27
 
28
 
29
  @app.post("/process-constraints", response_model=OutputData)
30
- async def process(constraints: InputConstraints):
31
  result = process_input_from_constraints(constraints, global_tech, global_tech_embeddings)
32
  return {"technologies": result}
33
 
 
15
  problem: str
16
 
17
  class InputConstraints(BaseModel):
18
+ constraints: Dict[str, str]
19
 
20
  class OutputData(BaseModel):
21
  technologies: list
 
27
 
28
 
29
  @app.post("/process-constraints", response_model=OutputData)
30
+ async def process_constraints(constraints: InputConstraints):
31
  result = process_input_from_constraints(constraints, global_tech, global_tech_embeddings)
32
  return {"technologies": result}
33