Spaces:
Runtime error
Runtime error
Download models/rating.py from cloudaiRambo/cloudairambo: direct link, hf CLI and curl.
- Browser
- Download file 413 Bytes
-
https://huggingface.co/spaces/cloudaiRambo/cloudairambo/resolve/main/models/rating.py
- Command line
-
hf download hf://spaces/cloudaiRambo/cloudairambo/models/rating.py
-
curl -L -o rating.py https://huggingface.co/spaces/cloudaiRambo/cloudairambo/resolve/main/models/rating.py
413 Bytes
| from sqlalchemy import Column, Integer, String, DateTime | |
| from sqlalchemy.sql import func | |
| from core.database import Base | |
| class Rating(Base): | |
| __tablename__ = "tool_ratings" | |
| id = Column(Integer, primary_key=True, index=True) | |
| tool = Column(String(100), index=True, nullable=False) | |
| rating = Column(Integer, nullable=False) | |
| created_at = Column(DateTime(timezone=True), server_default=func.now()) | |