Skip to content

Instantly share code, notes, and snippets.

View iabhisekbosepm's full-sized avatar
💭
Only AI

Abhisek Bose iabhisekbosepm

💭
Only AI
  • india
View GitHub Profile
@iabhisekbosepm
iabhisekbosepm / app.py
Created August 9, 2021 12:22 — forked from yashprakash13/app.py
FastApi example
import uvicorn
from fastapi import FastAPI
from model import SentimentModel, SentimentQueryModel
app = FastAPI()
model = SentimentModel()
@app.post('/predict')
def predict(data: SentimentQueryModel):
data = data.dict()