trying to fix to hugging face spaces

This commit is contained in:
anovazzi1 2023-03-18 19:47:27 -03:00
commit 0a4003fb74

View file

@ -4,7 +4,7 @@ import axios, { AxiosResponse } from "axios";
const backendUrl = window.sessionStorage.getItem('port') || "http://localhost:7860";
export async function getAll():Promise<AxiosResponse<APIObjectType>> {
return await axios.get(`${backendUrl}/all`);
return await axios.get(`/all`);
}
export async function sendAll(data:sendAllProps) {