fastapi_with_streamlit / inference_server.py
osanseviero's picture
Create inference_server.py
9dbb9e5
raw
history blame contribute delete
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}!"}