Skip to content

Commit

Permalink
Merge pull request #48 from cornatul/bug/fix-nlp-article-endpoint
Browse files Browse the repository at this point in the history
Fixed the issue
  • Loading branch information
izdrail authored Nov 28, 2023
2 parents afa24fe + 18707b3 commit 005bf05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/endpoints/nlp.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ async def root(article: ArticleAction):
spacy_html = displacy.render(doc, style="ent", options={"ents": [ent[0] for ent in filtered_entities_unique]})

import socialshares
counts = socialshares.fetch(url, ['facebook', 'pinterest', 'linkedin', 'google', 'reddit'])
counts = socialshares.fetch(article.link, ['facebook', 'pinterest', 'linkedin', 'google', 'reddit'])

return {
"data": {
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
version: '3'

services:
nlp:
api.todayintel.com:
build: .
image: cornatul/api.todayintel.com:v1
container_name: nlp
container_name: api.todayintel.com
restart: always
ports:
- "8000:8000"
Expand Down

0 comments on commit 005bf05

Please sign in to comment.