Skip to content

Commit

Permalink
Change api base url
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewlucasgs committed Jul 9, 2021
1 parent a095cbc commit 9268e3a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion components/TaskTable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function TaskTable({ tasks }) {

useEffect(async () => {
const URL =
"http://ec2-3-129-18-205.us-east-2.compute.amazonaws.com/api/v1";
"https://computerprogress.xyz/api/v1";

const taskId = tasks[selectedTask].task_id;
const datasetId = tasks[selectedTask].datasets[selectedDataset].dataset_id;
Expand Down
2 changes: 1 addition & 1 deletion containers/Benchmark/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function Benchmark({ benchmark, taskId, benchmarkId }) {
/>
<Chart data={data} label={label} isByYear={type} />
</div>
<Download contained href={`http://ec2-3-129-18-205.us-east-2.compute.amazonaws.com/api/v1/models/${taskId}/${benchmarkId}/csv`}>Download</Download>
<Download contained href={`https://computerprogress.xyz/api/v1/models/${taskId}/${benchmarkId}/csv`}>Download</Download>
<PapersList papers={data} accuracy={label} accuracy_list={buttons} />
</Container>
<ButtonToTop />
Expand Down
2 changes: 1 addition & 1 deletion pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export { default } from "../containers/Home";

export async function getServerSideProps() {
const URL =
"http://ec2-3-129-18-205.us-east-2.compute.amazonaws.com/api/v1/sota";
"https://computerprogress.xyz/api/v1/sota";

try {
const response = await fetch(URL);
Expand Down
2 changes: 1 addition & 1 deletion pages/tasks/[taskId]/[benchmarkId]/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export { default } from "../../../../containers/Benchmark";
export const getServerSideProps = async ({ query }) => {
try {
const res = await fetch(
`http://ec2-3-129-18-205.us-east-2.compute.amazonaws.com/api/v1/models/${query.taskId}/${query.benchmarkId}`
`https://computerprogress.xyz/api/v1/models/${query.taskId}/${query.benchmarkId}`
);
const benchmark = await res.json();

Expand Down
2 changes: 1 addition & 1 deletion pages/tasks/[taskId]/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export { default } from "../../../containers/Task";

export const getServerSideProps = async ({ query }) => {
try {
const res = await fetch(`http://ec2-3-129-18-205.us-east-2.compute.amazonaws.com/api/v1/sota/${query.taskId}`);
const res = await fetch(`https://computerprogress.xyz/api/v1/sota/${query.taskId}`);
const benchmarks = await res.json();

return {
Expand Down
2 changes: 1 addition & 1 deletion pages/tasks/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export { default } from "../../containers/Tasks";

export async function getServerSideProps() {
const URL =
"http://ec2-3-129-18-205.us-east-2.compute.amazonaws.com/api/v1/tasks";
"https://computerprogress.xyz/api/v1/tasks";

try {
const response = await fetch(URL);
Expand Down

0 comments on commit 9268e3a

Please sign in to comment.