diff --git a/ui/api.html b/ui/api.html index 6791683..92f8103 100644 --- a/ui/api.html +++ b/ui/api.html @@ -268,7 +268,7 @@ curl -X POST http://localhost:8000/api/predict \ -H "Content-Type: application/json" \ -d '{ - "prompt": "Once upon a time", + "prompt": "Kiedyś tak było", "n": 4, "temperature": 1.2, "length": 20 @@ -280,7 +280,7 @@ curl -X POST http://localhost:8000/api/predict \
 {
-  "prediction": "in a kingdom far away there lived a brave knight who sought adventure..."
+  "prediction": "przezroczyste, że prawie ich dostrzec nie mógł. Słysząc bowiem tyle o jej egzystencji. Zaiste z pogardą arcykapłańskich święceń i źle traktujesz sługi boże."
 }
@@ -294,7 +294,7 @@ const response = await fetch('/api/predict', { 'Content-Type': 'application/json' }, body: JSON.stringify({ - prompt: 'The old wizard', + prompt: 'Kiedyś tak było', n: 3, temperature: 0.8, length: 15 @@ -313,7 +313,7 @@ import requests response = requests.post('http://localhost:8000/api/predict', json={ - 'prompt': 'In the beginning', + 'prompt': 'Kiedyś tak było', 'n': 4, 'temperature': 1.0, 'length': 25 @@ -385,15 +385,6 @@ print(result['prediction']) - -
-

Rate Limits

-

- Currently, there are no rate limits imposed on the API. For - production use, consider implementing appropriate rate - limiting. -

-
diff --git a/ui/script.js b/ui/script.js index 846f963..b281097 100644 --- a/ui/script.js +++ b/ui/script.js @@ -158,9 +158,9 @@ document.addEventListener("DOMContentLoaded", () => { closeSidebarOnMobile(); }); - // Sync scroll - FIX: Use transform instead of scrollTop + // Sync scroll editor.addEventListener("scroll", () => { - suggestionOverlay.style.transform = `translateY(-${editor.scrollTop}px)`; + suggestionOverlay.scrollTop = editor.scrollTop; }); // Initialize UI badges diff --git a/ui/style.css b/ui/style.css index e2c025b..0f1dc95 100644 --- a/ui/style.css +++ b/ui/style.css @@ -414,5 +414,4 @@ label { pointer-events: none; opacity: 0.5; overflow: hidden; - transition: transform 0.05s linear; }