Spaces:
Running
Running
Update mobilevit.html
Browse files- mobilevit.html +4 -6
mobilevit.html
CHANGED
|
@@ -7,7 +7,7 @@
|
|
| 7 |
|
| 8 |
<script type="module">
|
| 9 |
// ํ๊น
ํ์ด์ค์ pipeline ๋ชจ๋์ importํ์ญ์์ค.
|
| 10 |
-
import {pipeline} from 'https://cdn.jsdelivr.net/npm/@xenova/[email protected]'; //va bene l'url???
|
| 11 |
// To-Do: ???
|
| 12 |
|
| 13 |
// Make it available globally
|
|
@@ -117,12 +117,10 @@
|
|
| 117 |
|
| 118 |
// pipeline ํจ์๋ฅผ ์ด์ฉํ์ฌ Xenova/mobilevit-small ๋ชจ๋ธ์ ์ธ์คํด์ค๋ฅผ ์์ฑํ์ฌ ์ด๋ฅผ classifier์ ์ ์ ํ์ญ์์ค. ์ธ์คํด์ค ์์ฑ ์ quantized ํ๋ผ๋ฏธํฐ์ ๊ฐ์ false๋ก ์ค์ ํ์ญ์์ค.
|
| 119 |
// To-Do: ???
|
| 120 |
-
classifier = await pipeline ('image-classification', 'Xenova/mobilevit-small'); //task va bene
|
| 121 |
-
const result = await classifier(textFieldValue, {
|
| 122 |
-
quantized: false, //???????
|
| 123 |
-
});
|
| 124 |
-
|
| 125 |
}
|
|
|
|
|
|
|
| 126 |
async function classifyImage() {
|
| 127 |
const textFieldValue = document.getElementById("imageClassificationURLText").value.trim();
|
| 128 |
const result = await classifier(textFieldValue);
|
|
|
|
| 7 |
|
| 8 |
<script type="module">
|
| 9 |
// ํ๊น
ํ์ด์ค์ pipeline ๋ชจ๋์ importํ์ญ์์ค.
|
| 10 |
+
import { pipeline } from 'https://cdn.jsdelivr.net/npm/@xenova/[email protected]'; //va bene l'url???
|
| 11 |
// To-Do: ???
|
| 12 |
|
| 13 |
// Make it available globally
|
|
|
|
| 117 |
|
| 118 |
// pipeline ํจ์๋ฅผ ์ด์ฉํ์ฌ Xenova/mobilevit-small ๋ชจ๋ธ์ ์ธ์คํด์ค๋ฅผ ์์ฑํ์ฌ ์ด๋ฅผ classifier์ ์ ์ ํ์ญ์์ค. ์ธ์คํด์ค ์์ฑ ์ quantized ํ๋ผ๋ฏธํฐ์ ๊ฐ์ false๋ก ์ค์ ํ์ญ์์ค.
|
| 119 |
// To-Do: ???
|
| 120 |
+
classifier = await pipeline ('image-classification', 'Xenova/mobilevit-small'); //task va bene?
|
|
|
|
|
|
|
|
|
|
|
|
|
| 121 |
}
|
| 122 |
+
|
| 123 |
+
|
| 124 |
async function classifyImage() {
|
| 125 |
const textFieldValue = document.getElementById("imageClassificationURLText").value.trim();
|
| 126 |
const result = await classifier(textFieldValue);
|