Skip to content

Commit

Permalink
added 3rd Model
Browse files Browse the repository at this point in the history
  • Loading branch information
pranjalkar99 committed Nov 24, 2023
1 parent e208e50 commit d727241
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 47 deletions.
86 changes: 43 additions & 43 deletions .firebase/hosting.ZGlzdA.cache
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
favicon.png,1700782513923,b1478580497a5822da29f6e15dcb675c88e05446c6b3d13001abb36cfffd80a9
index.html,1700782526019,e47b01915c5924946920fcfd7cb1b8df6cbddf943d3f23cad39a6a16436b6c06
manifest.webmanifest,1700782526019,b4c3d3ed910cd5f728973ce2422e66b396a34ae1a7382cd6747406d39aa8f34d
registerSW.js,1700782526019,cffcd66cea54ba3f643931972304147da9b9e11da6411f809b0c540221cffb5e
sw.js,1700782528315,743779c3fdc8a3871ad6e08c79e73872a99ec4f69f3f1ca25e26be9e4e21a4d6
assets/DetailsPage-legacy-3efaa843.js,1700782525595,87fb89e1fc2610654af220437b4c4b36819571b02b7d830994049033270004d5
assets/DetailsPage-de62a9a0.css,1700782526011,f68bea2e3a9ca3d9f58dff8ed7bf72edcefbd6e060eced31d23ee076891aeffb
assets/HomePage-93cdaca6.css,1700782526011,cf838a7307ac1c014687c66f3be12b70b5825d6e2e546416c3a811f459aac1ec
assets/DetailsPage-1afd2e4e.js,1700782526011,b61c887444e81ff47037033e5abbbbcd2cb7d62e5deeb478fa22bfd2133b0293
assets/PlantDetailsPage-4f6f36c9.js,1700782526011,237c2910d430d999e54aeeaf0df43613d46daabcb9a55c21f809094abd5b6cca
assets/PlantDetailsPage-9f7c5337.css,1700782526011,61ac82c8f378c32b7c86cac0e24f2bffa0f40b14df55d8b007f8932c7df1e311
assets/HomePage-legacy-00dd170c.js,1700782525595,c23af774549a063e737b69394cdba93bdd1d4b5080bc20a8fc9e5f17993d718c
workbox-fa446783.js,1700782528319,b050508a87d24b9846f2ec33341530d16d32b7a9d56b01bc96ea2d14a88bf57d
assets/RadioPage-6fc57ca9.js,1700782526011,204c2277fde925990ac38c3e523df2d4758a44610437e7e6a165c572b2e641b8
assets/focus-visible-9c13edeb.js,1700782526011,11c57e7f8a3a0138cc50ff7d77667afa69ce70d67ac3d9f341f9127892155e92
assets/focus-visible-legacy-b3e947fe.js,1700782525595,72b934c8e6f3da2be2e09fea9326bd5552e53cbe8a0aeaec576ba47d6484c17d
assets/RadioPage-5be363b1.css,1700782526011,fad6085e69524bcefb45a03a3080e6649553e7b92deb9b7e1f1bc6ae45f065df
assets/RadioPage-legacy-e523e481.js,1700782525595,99ab9b29dd2bf51321c4d9f4c4af045a961406d4a0fa2c188a1b144aab8dbc14
assets/PlantDetailsPage-legacy-158fe656.js,1700782525595,799b965935735b3eca490d77ee683d13dcb58b36b02a7fb0bf5602aa329fd583
assets/index9-6bed4f9a.js,1700782526011,7911c692a9f2ed4dd107fee74418bb13e4f5aa8b486ff8c61f5b6a61c99ef2b4
assets/index-a9f1f86f.css,1700782526011,5726ec8054325ed5525606403042832323081fd1a7a844ce4ab682b3ca63608a
assets/input-shims-9dcdf36f.js,1700782526015,dcd8a216ce29a13475faae89f64af3b46c956078a3cabee7f6341460482aa6c6
assets/ios.transition-legacy-05f20982.js,1700782525611,e5e87c74b16872f869013852219394a51f07fed2cba7ddb12119c016903e3172
assets/ios.transition-ca0199bd.js,1700782526015,962edb8f2424f0c72f1d50d38f7cb25174a56fdbaf1d4786be1bd7ea20a4b69c
assets/keyboard2-ae5cc831.js,1700782526011,65fccfd2c57eb77539966dcaa47c83fa5bae73c60b5e8b592e696eb179c54015
assets/keyboard2-legacy-53795606.js,1700782525595,597095b38e1b5650628589d1532cd0ef5748cc955ec352f955cbc0d961033c00
assets/md.transition-c29648ca.js,1700782526011,770654ce01c272e0d9d5584779e6915738ff6d09a8c7cf4bf249a94a84eed727
assets/md.transition-legacy-8b4c0ad1.js,1700782525591,1d092c6fc1339a0e34383b7cd21e389e693be5f92feabba068471d3c999a23ad
assets/status-tap-6dadd92e.js,1700782526011,2bcaeeed925aeb1bddbaa031cb2f1c3a4c724a64bfdae7ea0078f1d12c464242
assets/web-2ca4ed99.js,1700782526011,29cee4e7358db5024627672d351c447dc5c235365960f78cd1c34ef864d1774f
assets/web-e2b14b38.js,1700782526011,28c4fa8046d703da3fd89d1f47f772634a6e33528db822f7f662b7266105eded
assets/index9-legacy-c0b2afd5.js,1700782525595,fbf0ae8ec11e12f4ea83b5b79c8cb8c8a1ca8bf73a4af3a5ee77de116dbbfde1
assets/web-legacy-813c19f1.js,1700782525595,a191cfebfa6c6ea85a8ffe2fe4926812cad6bcf7b65834cb84a2a30a131f21cf
assets/swipe-back-ee3aed09.js,1700782526011,cc16610658f5d3baa0c3b6a959bd0854b1b5ee4e0affed6dd3a0f08110066f4f
assets/HomePage-fdbed98b.js,1700782526015,6f2eb352e3252f242caddf55e1e70c3244ffa819289a56bc1586f7cb91ca869e
assets/input-shims-legacy-fb7c935d.js,1700782525595,ed9ab4b93decd471ab92329ef65e4d58966bfc03f405cec42b754e5273ef6942
assets/status-tap-legacy-4d8240d0.js,1700782525595,f3f4e491e1807423820a8cd001245f6e65becc5191a0e47a9459eb349e80cc7c
assets/swipe-back-legacy-d11c57a7.js,1700782525587,90e5f3e6392dd569742e0f65041993f7a35f9c9e5a224b5dbd7ec031579fbf24
assets/web-legacy-cc1702ca.js,1700782525595,b0181ad4cc735f87fde7f9ad083ac5496640469e230155acf245a0fb65a1274a
assets/polyfills-legacy-c89c4da6.js,1700782525595,db38a6ecf381c944347ec3031b970c79247cfaeba5cfd5926fc06704c20a9b75
assets/index-legacy-d3858320.js,1700782525595,e7aad9f6e67e50ab8030eea8489c3a3d2e8f3dadbcf5520a830dac6f5a051a5a
assets/index-3ef9eb74.js,1700782526019,e363763278dd370400a0b2def5b40b18da73ee48b39f2953cfc73261bf0efa02
plant_village-1.0.2.png,1700782513923,6cb07aaa72a124ea5f7df2e28faa662eb2d2d2840ccfb98cb0a0f1afafee42d9
favicon.png,1700811010290,b1478580497a5822da29f6e15dcb675c88e05446c6b3d13001abb36cfffd80a9
index.html,1700811025398,3adb6023f8ed92e31b65cb8ee8f352a9ffc59fb325dc83b884c602e61faf994d
manifest.webmanifest,1700811025398,b4c3d3ed910cd5f728973ce2422e66b396a34ae1a7382cd6747406d39aa8f34d
assets/DetailsPage-a2846b6c.js,1700811025398,e2c1b49a4063db0962187cd10af5cf04ab401e0700690e2fd0f1b55d8266b6ee
sw.js,1700811029518,9368af64be35019835f7aa69bdbb7fb7a8e82b607dd78893e259ca462643541b
registerSW.js,1700811025398,cffcd66cea54ba3f643931972304147da9b9e11da6411f809b0c540221cffb5e
assets/DetailsPage-de62a9a0.css,1700811025394,f68bea2e3a9ca3d9f58dff8ed7bf72edcefbd6e060eced31d23ee076891aeffb
assets/HomePage-4919a5b6.css,1700811025394,eed62ac5ec9dd4bcea00a61fcde908eb28663908e9773be55f000dcb71058da5
workbox-fa446783.js,1700811029522,b050508a87d24b9846f2ec33341530d16d32b7a9d56b01bc96ea2d14a88bf57d
assets/DetailsPage-legacy-9d872c5d.js,1700811024786,8b6595c7636c212dc3ff131af90a4401d2ea0ac92c3bab1d6877c5f4e6df53e9
assets/PlantDetailsPage-8251ed35.js,1700811025398,99c51f58be96cf80fa0c26fce3647c45ae566b474bae23d640dc4c821d3311b2
assets/PlantDetailsPage-9f7c5337.css,1700811025394,61ac82c8f378c32b7c86cac0e24f2bffa0f40b14df55d8b007f8932c7df1e311
assets/PlantDetailsPage-legacy-45a73be2.js,1700811024786,acc2310d29a9a17374cff8cc3456ff11f2b23beda2e7a8eaaba303a81b5789ed
assets/RadioPage-5be363b1.css,1700811025394,fad6085e69524bcefb45a03a3080e6649553e7b92deb9b7e1f1bc6ae45f065df
assets/RadioPage-legacy-34e179fa.js,1700811024786,1f439dd43269b309ab73e65f7c5d3f5a1a2cb0b279aa8563ee9f8236da5e630e
assets/focus-visible-9c13edeb.js,1700811025398,11c57e7f8a3a0138cc50ff7d77667afa69ce70d67ac3d9f341f9127892155e92
assets/focus-visible-legacy-b3e947fe.js,1700811024786,72b934c8e6f3da2be2e09fea9326bd5552e53cbe8a0aeaec576ba47d6484c17d
assets/RadioPage-037d36a5.js,1700811025398,a390675a7252825ee1a0207054d92b3d643eb780e885cf84966f56ddfa7a42f0
assets/index-a9f1f86f.css,1700811025394,5726ec8054325ed5525606403042832323081fd1a7a844ce4ab682b3ca63608a
assets/index9-legacy-5f8cda68.js,1700811024786,54d29591a546fe180a4880f98b056f1c52eadd93c5f825187500940fb0f837e3
assets/HomePage-legacy-497a7fcb.js,1700811024786,7cd75fc45ed293934bd81147cd324e82b2375dd52274f6be8790d65c806f837f
assets/index9-0d0738b3.js,1700811025394,486aa348fb2996a9f8d59190fe498a8de0be2a2d85af9e7a14e8ce969b235c86
assets/input-shims-3345cbaf.js,1700811025398,503b008821e45f47d41b9463d57fe3efc74ada538ffd6cf7117b09aa78fe0436
assets/input-shims-legacy-73cca860.js,1700811024786,596bdba9a74bea328a97ea3832e265f210b5b20c0eb4041e14e3b89153d08e65
assets/keyboard2-8b403bf6.js,1700811025398,df066c2bc15946378fbff8af620ef9fd11885ff4b3bcfbed17fb0dcdab7a4dc6
assets/ios.transition-d7810c42.js,1700811025394,bedb5090d655ecd845819d3b015432f2f4eb14d2462c7433887cb0911a39b76b
assets/keyboard2-legacy-83bd0d9f.js,1700811024786,99d50ac1d4bf2a09bb7d33ffc3ad662557b25a8f31b2e76df88aac5ea9fa2eed
assets/ios.transition-legacy-c03113d6.js,1700811024786,54fec31bb24cff265f1096ba5d23cb802f73612c26ca5b712301d137242e20c6
assets/md.transition-legacy-6a0684b5.js,1700811024786,7ac96dbb8b8e37a2fc668d3ef393b8099159e0307306d4ebe17cd9ce00d53ca4
assets/md.transition-a2fe42be.js,1700811025398,6151bac73941091e4bcd05922053030349492c5bc9c3114c33a3829b7e4e17f6
assets/status-tap-3742a3f8.js,1700811025398,564e33875b4728b9b994f035c3e33a9218275ccfa3812eb3c22583131624763c
assets/status-tap-legacy-da4044f9.js,1700811024786,f99eccdb701c3b027053a1b4789808a1413151a2898d0eef6f76d3afc245fbf2
assets/swipe-back-7147a768.js,1700811025394,6431af69a278af93b8af99a2d21304bf4d024e11caac2a581cabb6e9dc8b00f1
assets/web-legacy-1b60b305.js,1700811024786,a318804c1fa3c6671bb88f01416530dbad652f38103e43178e1a09f771320f5d
assets/HomePage-8b094107.js,1700811025418,fb930b57e885bdf98bc1c0d5476a2000cac13daa0b8b9e64c3ebcf03eb87b716
assets/web-aaa5b8a2.js,1700811025394,b473c94b06e9ffa726a9d4c792bdb10a07438c46efceb351b148bbae1ff7c1a0
assets/web-legacy-cdd4e3c4.js,1700811024786,f35752ed0a7451a1025f0d212ebb1c15b37b1ac36645c3e5eaa1ce02d7bd3e3c
assets/swipe-back-legacy-44816840.js,1700811024778,34d56ee5fde5760f4c23470aa0cd8499ec32b5a026b67baa82af08f29c4a7286
assets/web-0bb7cbed.js,1700811025394,a655ee3d45a101ef3f04cba054d199d7cf9df96dd6a7ba745fa7346986095e32
assets/polyfills-legacy-c89c4da6.js,1700811024786,db38a6ecf381c944347ec3031b970c79247cfaeba5cfd5926fc06704c20a9b75
assets/index-3e2a0d5b.js,1700811025418,7c89d533dc6669913ad3202216cc168b1bc9ea9fda1c4716a2b685c4cd04e544
assets/index-legacy-d500d3d8.js,1700811024786,6d9b474d7bb88cdb98db6e1e4a29d5350d924bf67a9a462eb87ad220e6817f21
plant_village-1.0.2.png,1700811010318,6cb07aaa72a124ea5f7df2e28faa662eb2d2d2840ccfb98cb0a0f1afafee42d9
2 changes: 1 addition & 1 deletion dev-dist/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ define(['./workbox-5357ef54'], (function (workbox) { 'use strict';
"revision": "3ca0b8505b4bec776b69afdba2768812"
}, {
"url": "index.html",
"revision": "0.7p4md8jk7qg"
"revision": "0.cgpg4107upg"
}], {});
workbox.cleanupOutdatedCaches();
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {
Expand Down
30 changes: 27 additions & 3 deletions src/views/HomePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
<!-- Loading Spinner -->
<ion-spinner v-if="photo.processing" color="success"></ion-spinner>


<div v-if="photo.prediction !== undefined">
<ion-card-title>
<span class="predicted-class-key">Predicted Class:</span>
Expand All @@ -42,7 +41,19 @@
}}%
</ion-badge> -->
</ion-card-title>
<ion-button @click="goToDetailsPage">Show Details</ion-button>
<!-- <ion-button @click="goToDetailsPage">Show Details</ion-button> -->
<ion-item v-if="photo.prediction.details && photo.showDetails">
<ion-label>Details:</ion-label>
<ion-text>
<pre>{{
JSON.stringify(photo.prediction.details, null, 2)
}}</pre>
</ion-text>
</ion-item>

<ion-button @click="handleDetailsClick(photo)">
{{ photo.showDetails ? "Hide Details" : "Show Details" }}
</ion-button>
</div>
<ion-select
v-if="!photo.prediction && !photo.processing"
Expand Down Expand Up @@ -163,6 +174,16 @@ export default {
selectedOption.value = event.detail.value; // Update the selected option
updateBackendUrl(); // Call the function to update the backend URL
};
// const handleDetailsClick = (photo) => {
// // Toggle the details visibility for the selected photo
// photo.showDetails = !photo.showDetails;
// };
// // ... (previous return values) ...
// return {
// // ... (previous return values) ...
// handleDetailsClick,
// };
const updateBackendUrl = () => {
switch (selectedOption.value) {
Expand All @@ -174,7 +195,7 @@ export default {
"https://pranjalkar9-patta-ai.hf.space/predict-self-dataset-27/";
break;
case "option3":
BACKEND_URL.value = "https://pranjalkar9-patta-ai.hf.space/predict_20/";
BACKEND_URL.value = "https://pranjalkar9-patta-ai.hf.space/predict-plant-dataset-22/";
break;
// Add more cases if needed
}
Expand Down Expand Up @@ -215,6 +236,9 @@ export default {
console.log("This is now the details:", details.value);
photo.prediction = axiosResponse.data;
photo.processing = false;
if (axiosResponse.data.details) {
photo.details = axiosResponse.data.details;
}
} catch (error) {
console.error("Error sending photo:", error);
photo.processing = false;
Expand Down

0 comments on commit d727241

Please sign in to comment.