Spaces:
Running
Running
File size: 581 Bytes
b03d3b6 4587fe5 b03d3b6 9435ff3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
from fastapi import FastAPI
from pydantic import BaseModel
from src.core import process_input
app = FastAPI(
title="Insight Finder",
description="Using in input a technical problem, we can retrieve through AI, algorithms and logics, a list of technologies covering each constraints of the technical problem given",
)
class InputData(BaseModel):
problem: str
class OutputData(BaseModel):
technologies: list
@app.post("/process", response_model=OutputData)
async def process(data: InputData):
result = process_input(data)
return {"technologies": result}
|