Skip to content

Commit 59d3ec0

Browse files
committed
url error resolved
1 parent 0549c21 commit 59d3ec0

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

frontend/app/analyze/loading/page.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ import {
1616
import ThemeToggle from "@/components/theme-toggle";
1717
import axios from "axios";
1818

19-
const backend_url = process.env.NEXT_PUBLIC_API_URL;
19+
// const backend_url = process.env.NEXT_PUBLIC_API_URL;
20+
21+
2022

2123
/**
2224
* Displays a multi-step animated loading and progress interface for the article analysis workflow.
@@ -72,10 +74,10 @@ export default function LoadingPage() {
7274

7375
try {
7476
const [processRes, biasRes] = await Promise.all([
75-
axios.post(`${backend_url}/api/process`, {
77+
axios.post("https://thunder1245-perspective-backend.hf.space/api/process", {
7678
url: storedUrl,
7779
}),
78-
axios.post(`${backend_url}/api/bias`, {
80+
axios.post("https://thunder1245-perspective-backend.hf.space/api/bias", {
7981
url: storedUrl,
8082
}),
8183
]);

frontend/app/analyze/results/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import { Badge } from "@/components/ui/badge";
1919
import BiasMeter from "@/components/bias-meter";
2020
import axios from "axios";
2121

22-
const backend_url = process.env.NEXT_PUBLIC_API_URL;
22+
// const backend_url = process.env.NEXT_PUBLIC_API_URL;
2323

2424
/**
2525
* Renders the article analysis page with summary, perspectives, fact checks, bias meter, AI chat, and sources.
@@ -82,7 +82,7 @@ export default function AnalyzePage() {
8282
setMessages(newMessages);
8383
setMessage("");
8484

85-
const res = await axios.post(`${backend_url}/api/chat`, {
85+
const res = await axios.post("https://thunder1245-perspective-backend.hf.space/api/chat", {
8686
message: message,
8787
});
8888
const data = res.data;

0 commit comments

Comments
 (0)