Spaces:
Running
Running
from fastapi import FastAPI | |
from inference import outcome | |
import warnings | |
warnings.filterwarnings("ignore") | |
app=FastAPI() | |
def index(): | |
return {"message":"Welcome to Hinglish Translator"} | |
def predict(input: str): | |
return {"result":outcome(input)} | |