Spaces:
Running
Running
Download inference_server.py from vonshed/fastapi_with_streamlit: direct link, hf CLI and curl.
- Browser
- Download file 188 Bytes
-
https://huggingface.co/spaces/vonshed/fastapi_with_streamlit/resolve/main/inference_server.py
- Command line
-
hf download hf://spaces/vonshed/fastapi_with_streamlit/inference_server.py
-
curl -L -o inference_server.py https://huggingface.co/spaces/vonshed/fastapi_with_streamlit/resolve/main/inference_server.py
188 Bytes
| import uvicorn | |
| from fastapi import FastAPI | |
| app = FastAPI() | |
| # Here you can do things such as load your models | |
| def read_root(input_text): | |
| return {f"Hello {input_text}!"} |