From 418ffdb8245203ba4913a886895684b3c6a20b7d Mon Sep 17 00:00:00 2001 From: Chiroyce <97374054+Chiroyce1@users.noreply.github.com> Date: Sun, 8 Sep 2024 12:47:48 +0530 Subject: [PATCH] PWA support --- images/github.png | Bin 17151 -> 0 bytes index.html | 9 +++++---- manifest.json | 15 +++++++++++++++ script.js | 26 +++++++++++++++++++++++++- 4 files changed, 45 insertions(+), 5 deletions(-) delete mode 100644 images/github.png create mode 100644 manifest.json diff --git a/images/github.png b/images/github.png deleted file mode 100644 index e4aa82e48a163194664f01bd051045277cdeb37e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 17151 zcmY+sc|6qL_c(rMj4WBQOk}MjjIFZo6S9V}SJtS=uBWukdo9vu0L)y3S(iZ!-)<#tKY@T~#oD^z?;k}l2Sb)LD!oRhiX*B56h zUc4w`Iiq_vI_{O*>`}yORrAXB*lIxY?9$EUCa12Bsdc-sWg)HYvHM$&i}!yyhLyg8 zR{wv0&?W&cOgZQ4M^_qAC(Rq}FWSZZ)>jc)9*OJNvWgQE^H-;h9xm zp73_U%!skE8P?5w4!Ela?j0`*X>c(npU10kx5i~*-jI|X{0p8(g<(0}QJg^jxhl5n zYjErlTeR3(C{cJWRhZSjOxeW0{yD708^|*=0lv$E&0_Q3M8Cq-Yc{Yy(>Bri#{|;E z&#ax($@ygfFm?+Y2TKuh(Q33G$aM)^t_D%rm~v}EK$Py?jVCwG!qBC}-feBQRh!!0 z$h@=tfz%$hv7?Ez(J4_}sVpIcvpFXXKoW$gtTk1Uyzi>=3~unF0zWRE5Lk3;LM0nv zaRrXMRW#*voh*YFL}qID+(XD?S}iD1WrppCP%4?z-w6IhvMHoL9)7DEKM?N^|11)(=6b#T*Toz|CHGY~{>CVbzz zHSeJ9MoM>zCa;OYl_2oXlR=IZ1b#6>j2z3oxF^tkFHItXsBHQLr_Y45NCG+B3p-8N z6(4*P_p==V-26zMvc3OXPMEJR3pXACqAfaF-r^G_HFMXR_dxr0`Xm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~Ot`*(cCM3|g!(M5Q`q(AW_iVABtBx7PvdI&1DY8e z9Lv}1_vP@)Uwd2XnEhL`SlO^#o7M%UepX$w_J5N*pxZi-OEPrIsQ7%ulB9kTt}R_e zaKMls;6=HO+tZDyek`j`f{G?TLANg}jhro9+z$1~G0d{J6cSy0qPI`f%C)y3(-!y| m%tZg+{|WK$DX9VKD>@=S#QRlL?brPK#_)=%Zke|8!~YNB<~f%D diff --git a/index.html b/index.html index 02e9ba0..ad6df0b 100644 --- a/index.html +++ b/index.html @@ -5,9 +5,10 @@ - + + + content="google, gemini, image-analysis, gemini-flash, google-ai, gpt, chatgpt, ai, llm, gemini-demo, chiroyce"> - Gemini Pro Vision Demo + Gemini Vision

-

Gemini Pro Vision

+

Gemini Vision

diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..09bc25b --- /dev/null +++ b/manifest.json @@ -0,0 +1,15 @@ +{ + "name": "Gemini Vision", + "short_name": "Gemini", + "display": "standalone", + "start_url": "./", + "icons": [ + { + "src": "./images/gemini.png", + "type": "image/x-png", + "sizes": "500x500" + } + ], + "background_color": "#588fec", + "theme_color": "#588fec" +} diff --git a/script.js b/script.js index 1b7114f..fd49c5b 100644 --- a/script.js +++ b/script.js @@ -1,6 +1,27 @@ import { GoogleGenerativeAI } from "@google/generative-ai"; import prompts from "./prompts.js"; +import { HarmBlockThreshold, HarmCategory } from "@google/generative-ai"; + +const safetySettings = [ + { + category: HarmCategory.HARM_CATEGORY_HARASSMENT, + threshold: HarmBlockThreshold.BLOCK_NONE, + }, + { + category: HarmCategory.HARM_CATEGORY_HATE_SPEECH, + threshold: HarmBlockThreshold.BLOCK_NONE, + }, + { + category: HarmCategory.HARM_CATEGORY_SEXUALLY_EXPLICIT, + threshold: HarmBlockThreshold.BLOCK_NONE, + }, + { + category: HarmCategory.HARM_CATEGORY_DANGEROUS_CONTENT, + threshold: HarmBlockThreshold.BLOCK_NONE, + }, +]; + const responseElement = document.getElementById("response"); const cameraSelect = document.getElementById("cameraSelect"); const promptSelect = document.getElementById("promptSelect"); @@ -119,7 +140,10 @@ async function captureImage() { show(`Oops something went wrong.\nError: ${e}`); } - const model = genAI.getGenerativeModel({ model: "gemini-1.5-flash" }); + const model = genAI.getGenerativeModel({ + model: "gemini-1.5-flash", + safetySettings, + }); show("Loading... "); let res; active = true;