Skip to content

Commit

Permalink
Fix url for data
Browse files Browse the repository at this point in the history
  • Loading branch information
phoenixpereira committed May 28, 2024
1 parent 2bf8bd5 commit f1e14ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .env.local.example
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
NEXT_PUBLIC_HUGGINGFACE_API_TOKEN="YOUR_HUGGINGFACE_API_TOKEN"
NEXT_PUBLIC_HUGGINGFACE_API_TOKEN="YOUR_HUGGINGFACE_API_TOKEN"
PUBLIC_URL=http://localhost:3000/
2 changes: 1 addition & 1 deletion src/components/Statistics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const Statistics: React.FunctionComponent<StatisticsProps> = ({ userText }) => {
useEffect(() => {
const fetchData = async () => {
try {
const response = await fetch("/combined_analysis.json");
const response = await fetch(`${process.env.PUBLIC_URL}/combined_analysis.json`);
const data = await response.json();

setHumanData({
Expand Down

0 comments on commit f1e14ef

Please sign in to comment.