Spaces:
Runtime error
Runtime error
Download src/models.py from datajoi/datajoi-sql-agent: direct link, hf CLI and curl.
- Browser
- Download file 226 Bytes
-
https://huggingface.co/spaces/datajoi/datajoi-sql-agent/resolve/main/src/models.py
- Command line
-
hf download hf://spaces/datajoi/datajoi-sql-agent/src/models.py
-
curl -L -o models.py https://huggingface.co/spaces/datajoi/datajoi-sql-agent/resolve/main/src/models.py
226 Bytes
| from pydantic import BaseModel, Field | |
| class SQLQueryModel(BaseModel): | |
| sql_query: str = Field(..., description="SQL query to execute.") | |
| explanation: str = Field(..., description="Short explanation of the SQL query.") | |