File tree Expand file tree Collapse file tree 4 files changed +10
-7
lines changed Expand file tree Collapse file tree 4 files changed +10
-7
lines changed Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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+ } ;
Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments