Serving ML Model with FastAPII’ve been using FastAPI instead of Flask to quickly build my API. The main reason is I find FastAPI is faster to write (less code) and it also auto-generates documentation (using Swagger UI) that allows me to test the API with basic UI. Additionally, ...
from fastapi import FastAPI, HTTPException, Query from fastapi.middleware.cors import CORSMiddleware from langflow.custom import CustomComponent from langchain_community.utilities import SQLDatabase from langchain_community.agent_toolkits import SQLDatabaseToolkit from langchain_community.agent_toolkits.sql....
During handling of the above exception, another exception occurred: Traceback (most recent call last): File "E:\Downloads\stable-diffusion-webui-directml\venv\lib\site-packages\fastapi\encoders.py", line 157, in jsonable_encoder data = vars(obj) TypeError: vars() argument must have __dict...