fixed another typo
Browse files- index.html +1 -1
index.html
CHANGED
@@ -20,7 +20,7 @@
|
|
20 |
const textbox = document.querySelector("#prompt")
|
21 |
const res = document.querySelector("#response")
|
22 |
const prompt = textbox.value
|
23 |
-
btn.
|
24 |
fetch(`/gpt?prompt=${prompt}`)
|
25 |
.then(res => res.json())
|
26 |
.then(res => {
|
|
|
20 |
const textbox = document.querySelector("#prompt")
|
21 |
const res = document.querySelector("#response")
|
22 |
const prompt = textbox.value
|
23 |
+
btn.addEventListener("click", event => {
|
24 |
fetch(`/gpt?prompt=${prompt}`)
|
25 |
.then(res => res.json())
|
26 |
.then(res => {
|