Spaces:
Sleeping
Sleeping
Download app.py from thesunshine36/docker_fastapi: direct link, hf CLI and curl.
- Browser
- Download file 259 Bytes
-
https://huggingface.co/spaces/thesunshine36/docker_fastapi/resolve/main/app.py
- Command line
-
hf download hf://spaces/thesunshine36/docker_fastapi/app.py
-
curl -L -o app.py https://huggingface.co/spaces/thesunshine36/docker_fastapi/resolve/main/app.py
259 Bytes
| from fastapi import FastAPI | |
| from model_config import console_chat | |
| # Get time | |
| app = FastAPI() | |
| # FastAPI | |
| def return_api(text: str): | |
| # Get the caption | |
| response= console_chat.chat(text) | |
| # Return message | |
| return response |