Spaces:
Runtime error
Runtime error
Download models.py from FlashCapital/flash-api: direct link, hf CLI and curl.
- Browser
- Download file 642 Bytes
-
https://huggingface.co/spaces/FlashCapital/flash-api/resolve/main/models.py
- Command line
-
hf download hf://spaces/FlashCapital/flash-api/models.py
-
curl -L -o models.py https://huggingface.co/spaces/FlashCapital/flash-api/resolve/main/models.py
642 Bytes
| from sqlalchemy import Column, Integer, String, Text, TIMESTAMP | |
| from database import Base | |
| from datetime import datetime | |
| class NoticiaAnalizada(Base): | |
| __tablename__ = "noticias_flash" | |
| # Usamos nombres simples sin acentos ni espacios para evitar errores de red | |
| id = Column(Integer, primary_key=True, index=True) | |
| titular = Column(String) | |
| resumen = Column(Text) | |
| activos = Column(String) | |
| sentimiento = Column(String) | |
| justificacion = Column(Text) # Nombre limpio sin acento | |
| enlace = Column(String) # Nombre limpio sin espacios | |
| fecha_creacion = Column(TIMESTAMP, default=datetime.utcnow) |