Duplicated from templates/fastapi_with_streamlit
3e26431
1
2
3
4
5
6
7
8
9
10
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}!"}