Skip to content

Commit 6c8af20

Browse files
committed
Update request format
1 parent 6b04dee commit 6c8af20

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

src/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function App() {
2323
<Modal />
2424
<NotificationContainer />
2525
<SpinerLoader />
26-
26+
2727
{/* ApiService info*/}
2828
<div className="fixed bottom-0 left-0 w-64 flex justify-center mb-1">
2929
<ApiService />
@@ -32,4 +32,4 @@ function App() {
3232
);
3333
}
3434

35-
export default App;
35+
export default App;

src/components/ApiService.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const ApiService = () => {
1616
dispatchActiveEncodeImageItem: daei,
1717
setSpinnerLoading: ssl,
1818
} = useContext(MainContext);
19-
19+
2020
const [apiDetails, setApiDetails] = useState({
2121
device: "",
2222
gpu: {
@@ -55,8 +55,10 @@ export const ApiService = () => {
5555
return (
5656
<div className="flex space-x-4">
5757
<span
58-
className={`inline-flex justify-center items-center text-[10px] font-medium pr-2 pl-2 ${
59-
apiDetails.device === "cuda" ? "text-green-800 bg-green-200" : "text-yellow-800 bg-yellow-200"
58+
className={`inline-flex justify-center items-center text-[10px] font-medium p-2 ${
59+
apiDetails.device === "cuda"
60+
? "text-green-800 bg-green-200"
61+
: "text-yellow-800 bg-yellow-200"
6062
}`}
6163
>
6264
{apiDetails.device === "cuda" ? "GPU Active" : "CPU Mode"}
@@ -80,4 +82,4 @@ export const ApiService = () => {
8082
</span>
8183
</div>
8284
);
83-
};
85+
};

src/components/DecodeAutomatic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ export const DecodeAutomatic = () => {
4242
zoom: activeEncodeImageItem.zoom,
4343
id: activeEncodeImageItem.id,
4444
project: activeProject.properties.slug,
45+
return_format: "geojson",
4546
};
4647

4748
const resp = await requestSegments(reqProps, "segment_automatic");
48-
4949
const features = setProps2Features(
5050
resp.features,
5151
activeProject,

src/components/DecodePointPromt.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ export const DecodePointPromt = () => {
115115
id: activeEncodeImageItem.id,
116116
project: activeProject.properties.slug,
117117
action_type: actionType,
118+
return_format: "geojson",
118119
};
119120
const resp = await requestSegments(reqProps, "segment_predictor");
120121
const features = setProps2Features(

0 commit comments

Comments
 (0)