Spaces:
Runtime error
Runtime error
Download models.py from xclasscode/sentiment_analyzer: direct link, hf CLI and curl.
- Browser
- Download file 386 Bytes
-
https://huggingface.co/spaces/xclasscode/sentiment_analyzer/resolve/main/models.py
- Command line
-
hf download hf://spaces/xclasscode/sentiment_analyzer/models.py
-
curl -L -o models.py https://huggingface.co/spaces/xclasscode/sentiment_analyzer/resolve/main/models.py
386 Bytes
| from sqlalchemy import Column,Integer, String,DateTime,Float | |
| from datetime import datetime | |
| import database | |
| class SentimentResult(database.Base): | |
| __tablename__ = "sentiment_results" | |
| id = Column(Integer, primary_key=True, index=True) | |
| text_input = Column(String) | |
| score = Column(Float) | |
| label = Column(String) | |
| created_at = Column(DateTime, default=datetime.utcnow) |