Update index.html
Browse files35 unmodified lines36373839404152 unmodified lines94959697989910010 unmodified lines11111211311411511611735 unmodified lines<script>let apiKey = '';let apiUrl = '';////////////////////////////////////////////////// Populate the model list on api key change52 unmodified linesdocument.getElementById("embed-form").addEventListener("submit", function(event) {event.preventDefault();const text = document.getElementById("embed-input").value;fetch("/embed", {method: "GET",headers: {"Content-Type": "application/json"10 unmodified linesevent.preventDefault();const text = document.getElementById("search-input").value;const n = document.getElementById("n-input").value;fetch("/search", {method: "GET",headers: {"Content-Type": "application/json"35 unmodified lines363738394041424352 unmodified lines9697989910010110210 unmodified lines11311411511611711811935 unmodified lines<script>let apiKey = '';let apiUrl = '';const hfApiUrl = 'https://almaatla-fastapi.hf.space/';////////////////////////////////////////////////// Populate the model list on api key change52 unmodified linesdocument.getElementById("embed-form").addEventListener("submit", function(event) {event.preventDefault();const text = document.getElementById("embed-input").value;fetch(hfApiUrl + "embed", {method: "GET",headers: {"Content-Type": "application/json"10 unmodified linesevent.preventDefault();const text = document.getElementById("search-input").value;const n = document.getElementById("n-input").value;fetch(hfApiUrl + "search", {method: "GET",headers: {"Content-Type": "application/json"
index.html+4-2