me / inference_server.py
streetyogi's picture
Duplicate from templates/fastapi_with_streamlit
3e26431
raw
history blame
188 Bytes
import uvicorn
from fastapi import FastAPI
app = FastAPI()
# Here you can do things such as load your models
@app.get("/")
def read_root(input_text):
return {f"Hello {input_text}!"}