Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 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):
|
|
|
|
| 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):
|