Spaces:
Running
Running
Update index.html
Browse files- index.html +17 -2
index.html
CHANGED
|
@@ -1693,7 +1693,7 @@ kbd {
|
|
| 1693 |
<li>The Centre for Genomics, Zewail City</li>
|
| 1694 |
</ul>
|
| 1695 |
<div class="section-h3">Contact</div>
|
| 1696 |
-
<p class="prose">For questions, collaboration inquiries, or feedback: <a href="
|
| 1697 |
</div>
|
| 1698 |
</div>
|
| 1699 |
</div>
|
|
@@ -1778,7 +1778,7 @@ kbd {
|
|
| 1778 |
<address style="font-style:normal;color:rgba(255,255,255,0.55);font-size:11px;">Ahmed Zewail Street, October Gardens, Giza, Egypt</address>
|
| 1779 |
<p style="margin-top:6px;font-size:11px;"><a href="/cdn-cgi/l/email-protection#1d786d747e7c706d336e686d5d7a707c7471337e7270" style="color:rgba(160,200,255,0.85);text-decoration:none;"><span class="__cf_email__" data-cfemail="badfcad3d9dbd7ca94c9cfcafaddd7dbd3d694d9d5d7">[email protected]</span></a></p>
|
| 1780 |
</footer>
|
| 1781 |
-
<script data-cfasync="false" src="/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"></script><script type="module">
|
| 1782 |
import { Client } from "https://esm.sh/@gradio/client";
|
| 1783 |
/* ββ CONFIG βββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 1784 |
const GRADIO_PREDICTION_TARGET_ID = "nonzeroexit/AMP-Classifier";
|
|
@@ -1786,6 +1786,7 @@ kbd {
|
|
| 1786 |
const MAILER_SPACE_ID = "nonzeroexit/AMP-Mailer";
|
| 1787 |
const HF_TOKEN = null; // β if Space is Private: paste your HF read token "hf_xxxx"
|
| 1788 |
// β if Space is Public: leave as null
|
|
|
|
| 1789 |
/* ββ AA PROPERTY MAP βββββββββββββββββββββββββββββββββββββββ */
|
| 1790 |
const AA_PROPS = {
|
| 1791 |
A:'hydrophobic', V:'hydrophobic', I:'hydrophobic', L:'hydrophobic',
|
|
@@ -2440,6 +2441,20 @@ kbd {
|
|
| 2440 |
setStep(3, 'done', 'Report ready β download below.');
|
| 2441 |
if (step3Sub) step3Sub.textContent = 'PDF ready';
|
| 2442 |
showToast('PDF report ready to download', 'success', 3000);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2443 |
if (emailStatusResult) {
|
| 2444 |
additionalOutput.appendChild(emailStatusResult);
|
| 2445 |
emailStatusResult.style.display = 'flex';
|
|
|
|
| 1693 |
<li>The Centre for Genomics, Zewail City</li>
|
| 1694 |
</ul>
|
| 1695 |
<div class="section-h3">Contact</div>
|
| 1696 |
+
<p class="prose">For questions, collaboration inquiries, or feedback: <a href="/cdn-cgi/l/email-protection#84e1f4ede7e5e9f4aaf7f1f4c4e3e9e5ede8aae7ebe9" style="color:var(--ncbi-blue);"><span class="__cf_email__" data-cfemail="1c796c757f7d716c326f696c5c7b717d7570327f7371">[email protected]</span></a></p>
|
| 1697 |
</div>
|
| 1698 |
</div>
|
| 1699 |
</div>
|
|
|
|
| 1778 |
<address style="font-style:normal;color:rgba(255,255,255,0.55);font-size:11px;">Ahmed Zewail Street, October Gardens, Giza, Egypt</address>
|
| 1779 |
<p style="margin-top:6px;font-size:11px;"><a href="/cdn-cgi/l/email-protection#1d786d747e7c706d336e686d5d7a707c7471337e7270" style="color:rgba(160,200,255,0.85);text-decoration:none;"><span class="__cf_email__" data-cfemail="badfcad3d9dbd7ca94c9cfcafaddd7dbd3d694d9d5d7">[email protected]</span></a></p>
|
| 1780 |
</footer>
|
| 1781 |
+
<script data-cfasync="false" src="/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"></script><script data-cfasync="false" src="/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"></script><script type="module">
|
| 1782 |
import { Client } from "https://esm.sh/@gradio/client";
|
| 1783 |
/* ββ CONFIG βββββββββββββββββββββββββββββββββββββββββββββββ */
|
| 1784 |
const GRADIO_PREDICTION_TARGET_ID = "nonzeroexit/AMP-Classifier";
|
|
|
|
| 1786 |
const MAILER_SPACE_ID = "nonzeroexit/AMP-Mailer";
|
| 1787 |
const HF_TOKEN = null; // β if Space is Private: paste your HF read token "hf_xxxx"
|
| 1788 |
// β if Space is Public: leave as null
|
| 1789 |
+
const SHEET_WEBHOOK_URL = 'https://script.google.com/macros/s/AKfycbzF8_W8uwshY2THg7atOc9TmRqerLKAJyZbs9_-hP5kj99LMYTqn2e4Ki8SwNzZo8Oc/exec'; // β if Space is Public: leave as null
|
| 1790 |
/* ββ AA PROPERTY MAP βββββββββββββββββββββββββββββββββββββββ */
|
| 1791 |
const AA_PROPS = {
|
| 1792 |
A:'hydrophobic', V:'hydrophobic', I:'hydrophobic', L:'hydrophobic',
|
|
|
|
| 2441 |
setStep(3, 'done', 'Report ready β download below.');
|
| 2442 |
if (step3Sub) step3Sub.textContent = 'PDF ready';
|
| 2443 |
showToast('PDF report ready to download', 'success', 3000);
|
| 2444 |
+
// ββ Log user to Google Sheet ββββββββββββββββββ
|
| 2445 |
+
if (SHEET_WEBHOOK_URL && userEmailInput?.value?.trim()) {
|
| 2446 |
+
fetch(SHEET_WEBHOOK_URL, {
|
| 2447 |
+
method: 'POST',
|
| 2448 |
+
mode: 'no-cors',
|
| 2449 |
+
headers: { 'Content-Type': 'application/json' },
|
| 2450 |
+
body: JSON.stringify({
|
| 2451 |
+
email: userEmailInput.value.trim(),
|
| 2452 |
+
label: ampLabel,
|
| 2453 |
+
confidence: (ampConf * 100).toFixed(1) + '%',
|
| 2454 |
+
sequence: seq.slice(0, 50) + (seq.length > 50 ? 'β¦' : '')
|
| 2455 |
+
})
|
| 2456 |
+
}).catch(() => {}); // silent β never blocks the user
|
| 2457 |
+
}
|
| 2458 |
if (emailStatusResult) {
|
| 2459 |
additionalOutput.appendChild(emailStatusResult);
|
| 2460 |
emailStatusResult.style.display = 'flex';
|