Spaces:
Runtime error
Runtime error
Download models/stats_model.py from cloudaiRambo/cloudairambo: direct link, hf CLI and curl.
- Browser
- Download file 406 Bytes
-
https://huggingface.co/spaces/cloudaiRambo/cloudairambo/resolve/main/models/stats_model.py
- Command line
-
hf download hf://spaces/cloudaiRambo/cloudairambo/models/stats_model.py
-
curl -L -o stats_model.py https://huggingface.co/spaces/cloudaiRambo/cloudairambo/resolve/main/models/stats_model.py
406 Bytes
| from sqlalchemy import Column, Integer, String, DateTime | |
| from core.database import Base | |
| from datetime import datetime | |
| class UsageStat(Base): | |
| __tablename__ = "usage_stats" | |
| id = Column(Integer, primary_key=True, index=True, autoincrement=True) | |
| tool_name = Column(String, nullable=False) | |
| usage_count = Column(Integer, default=0) | |
| last_used_at = Column(DateTime, default=datetime.utcnow) | |