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