Spaces:
Sleeping
Sleeping
| 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 | |
| async def process(data: InputData): | |
| result = process_input(data) | |
| return {"technologies": result} | |