Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ async def process(data: InputData):
|
|
26 |
return {"technologies": result}
|
27 |
|
28 |
|
29 |
-
@app.post("/process", response_model=OutputData)
|
30 |
async def process(constraints: InputConstraints):
|
31 |
result = process_input(constraints, global_tech, global_tech_embeddings)
|
32 |
return {"technologies": result}
|
|
|
26 |
return {"technologies": result}
|
27 |
|
28 |
|
29 |
+
@app.post("/process-constraints", response_model=OutputData)
|
30 |
async def process(constraints: InputConstraints):
|
31 |
result = process_input(constraints, global_tech, global_tech_embeddings)
|
32 |
return {"technologies": result}
|