Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated from
templates/fastapi_with_streamlit
streetyogi
/
me
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
3e26431
me
/
inference_server.py
streetyogi
Duplicate from templates/fastapi_with_streamlit
3e26431
about 2 years ago
raw
Copy download link
history
blame
Safe
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}
!"
}