Samarth043 commited on
Commit
f046f18
路
verified 路
1 Parent(s): 4bb27e1

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +2 -3
index.html CHANGED
@@ -22,7 +22,7 @@ small{color:#93a3b1}
22
  <body>
23
  <main>
24
  <h1>Was this image made by AI?</h1>
25
- <p>Runs on your phone. Your image is never uploaded. The first check downloads the model (about 100 to 400 MB), so use Wi-Fi.</p>
26
  <input id="f" type="file" accept="image/*">
27
  <img id="p" alt="">
28
  <div id="res">
@@ -41,8 +41,7 @@ const MODEL = 'onnx-community/CommunityForensics-DeepfakeDet-ViT-ONNX';
41
  let clf;
42
  async function load(){
43
  if(clf) return clf;
44
- try { clf = await pipeline('image-classification', MODEL, { dtype: 'q8' }); }
45
- catch(e){ clf = await pipeline('image-classification', MODEL); }
46
  return clf;
47
  }
48
  const TOOLS = [[/midjourney/i,'Midjourney'],[/dall[\s\-路]?e|openai/i,'OpenAI / DALL路E'],[/stable\s?diffusion|sdxl|automatic1111/i,'Stable Diffusion'],[/firefly|generative ?fill/i,'Adobe Firefly'],[/imagen|gemini|synthid/i,'Google AI'],[/leonardo\.?ai/i,'Leonardo AI'],[/comfyui/i,'ComfyUI'],[/ideogram/i,'Ideogram']];
 
22
  <body>
23
  <main>
24
  <h1>Was this image made by AI?</h1>
25
+ <p>Runs on your phone. Your image is never uploaded. The first check downloads the model (a few hundred MB), so use Wi-Fi.</p>
26
  <input id="f" type="file" accept="image/*">
27
  <img id="p" alt="">
28
  <div id="res">
 
41
  let clf;
42
  async function load(){
43
  if(clf) return clf;
44
+ clf = await pipeline('image-classification', MODEL, { dtype: 'fp32' });
 
45
  return clf;
46
  }
47
  const TOOLS = [[/midjourney/i,'Midjourney'],[/dall[\s\-路]?e|openai/i,'OpenAI / DALL路E'],[/stable\s?diffusion|sdxl|automatic1111/i,'Stable Diffusion'],[/firefly|generative ?fill/i,'Adobe Firefly'],[/imagen|gemini|synthid/i,'Google AI'],[/leonardo\.?ai/i,'Leonardo AI'],[/comfyui/i,'ComfyUI'],[/ideogram/i,'Ideogram']];