Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -48,12 +48,12 @@ async def process_constraints(constraints: InputConstraints):
|
|
48 |
return {"technologies": result}
|
49 |
|
50 |
@app.post("/prior-art-constraints", response_model=PriorArt)
|
51 |
-
async def prior_art_search(
|
52 |
-
prior_art = process_prior_art(
|
53 |
return prior_art
|
54 |
|
55 |
@app.post("/prior-art-problems", response_model=PriorArt)
|
56 |
-
async def
|
57 |
prior_art = process_prior_art(technologies, problems, type)
|
58 |
return prior_art
|
59 |
|
|
|
48 |
return {"technologies": result}
|
49 |
|
50 |
@app.post("/prior-art-constraints", response_model=PriorArt)
|
51 |
+
async def prior_art_search(TechnologyData, InputConstraints, type: str):
|
52 |
+
prior_art = process_prior_art(TechnologyData, InputConstraints, type)
|
53 |
return prior_art
|
54 |
|
55 |
@app.post("/prior-art-problems", response_model=PriorArt)
|
56 |
+
async def prior_art_search_problems(technologies: TechnologyData, problems: InputData, type: str):
|
57 |
prior_art = process_prior_art(technologies, problems, type)
|
58 |
return prior_art
|
59 |
|