Skip to content

Commit

Permalink
Merge branch 'refs/heads/feature/ISSUE-100' into staging
Browse files Browse the repository at this point in the history
# Conflicts:
#	Pipfile.lock
  • Loading branch information
stopmin committed Jul 15, 2024
2 parents 86961f0 + 8d4d161 commit 346393a
Show file tree
Hide file tree
Showing 10 changed files with 346 additions and 346 deletions.
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ schedule = "*"
feedparser = "*"
numpy = "*"
pandas = "*"
lightfm = "*"
langchain = "*"
chromadb = "*"
langchain-community = "*"
Expand All @@ -31,6 +30,7 @@ tiktoken = "*"
langchain-openai = "*"
langchain-google-community = "*"
wikipedia-api = "*"
plotly = "*"

[dev-packages]
flake8 = "*"
Expand Down
114 changes: 21 additions & 93 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions app/model/article_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
class ArticleResponse(BaseModel):
title: str
content: str
pub_date: str
image_url: str
2 changes: 2 additions & 0 deletions app/model/crawled_article.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ class Articles(Base):
phrase = Column(JSONB, nullable=True)
comment = Column(Text, nullable=True)
category = Column(CHAR(255), nullable=True)
published_at = Column(DateTime, nullable=True)
image_url = Column(String, nullable=True)
probability_issue_finder = Column(Integer, nullable=True)
probability_lifestyle_consumer = Column(Integer, nullable=True)
probability_entertainer = Column(Integer, nullable=True)
Expand Down
13 changes: 7 additions & 6 deletions app/model/user_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

class UserType(Base):
__tablename__ = "user_type"
__table_args__ = {"schema": "gyeongdan"}

user_id = Column(BigInteger, primary_key=True, index=True)
user_type_issue_finder = Column(Integer, nullable=True)
Expand All @@ -17,9 +18,9 @@ class UserType(Base):


class UserTypes(Enum):
NONE: -1
ISSUE_FINDER: 0
LIFESTYLE_CONSUMER: 1
ENTERTAINER: 2
TECH_SEPCIALIST: 3
PROFESSIONALS: 4
NONE= -1
ISSUE_FINDER= 0
LIFESTYLE_CONSUMER= 1
ENTERTAINER= 2
TECH_SEPCIALIST= 3
PROFESSIONALS= 4
Loading

0 comments on commit 346393a

Please sign in to comment.