fix: image urls in article card
This commit is contained in:
parent
4721846c8f
commit
e68cc23993
|
|
@ -15,7 +15,7 @@ spec:
|
|||
spec:
|
||||
containers:
|
||||
- name: backend
|
||||
image: 192.168.8.250:5000/agentic-os/newspaper-extractor-backend:latest
|
||||
image: 192.168.8.250:5000/agentic-os/newspaper-extractor-backend:v2
|
||||
imagePullPolicy: Always
|
||||
env:
|
||||
- name: DATABASE_URL
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ spec:
|
|||
spec:
|
||||
containers:
|
||||
- name: worker
|
||||
image: 192.168.8.250:5000/agentic-os/newspaper-extractor-backend:latest
|
||||
image: 192.168.8.250:5000/agentic-os/newspaper-extractor-backend:v2
|
||||
imagePullPolicy: Always
|
||||
command: ["celery", "-A", "app.tasks.celery_app", "worker", "--loglevel=info", "-P", "solo"]
|
||||
env:
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ spec:
|
|||
args:
|
||||
- "--context=dir:///workspace/newspaper-extractor/backend"
|
||||
- "--dockerfile=Dockerfile"
|
||||
- "--destination=registry.platform-data.svc.cluster.local:5000/agentic-os/newspaper-extractor-backend:latest"
|
||||
- "--destination=registry.platform-data.svc.cluster.local:5000/agentic-os/newspaper-extractor-backend:v2"
|
||||
- "--insecure"
|
||||
- "--skip-tls-verify"
|
||||
- "--cache=false"
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ export function ArticleCard({ article: initialArticle }: ArticleCardProps) {
|
|||
const isNegative = sentimentScore < -0.3;
|
||||
|
||||
const imageUrl = article.image_path
|
||||
? `/api/images/${article.image_path.split('/').pop()}`
|
||||
? `/api/images/${article.image_path.replace('/data/storage/', '')}`
|
||||
: null;
|
||||
|
||||
const handleSave = async () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue