Spaces:
Running
Running
Download Browser_Agent/api/models.py from Luca448/APP-Backend: direct link, hf CLI and curl.
- Browser
- Download file 312 Bytes
-
https://huggingface.co/spaces/Luca448/APP-Backend/resolve/main/Browser_Agent/api/models.py
- Command line
-
hf download hf://spaces/Luca448/APP-Backend/Browser_Agent/api/models.py
-
curl -L -o models.py https://huggingface.co/spaces/Luca448/APP-Backend/resolve/main/Browser_Agent/api/models.py
312 Bytes
| # api/models.py | |
| from pydantic import BaseModel | |
| from typing import Optional | |
| class TaskRequest(BaseModel): | |
| task: str | |
| session_id: Optional[str] = None | |
| predefined_task: Optional[str] = None | |
| class TaskResponse(BaseModel): | |
| status: str | |
| result: Optional[str] = None | |
| error: Optional[str] = None | |