Spaces:
Running
Running
Update index.js
Browse files21 unmodified lines2223242526272821 unmodified lines// Sets context and frames the answerasync function getAnswer(question) {const context = 'As of December 2022, MrBeast is the most-subscribed YouTuber, with 116 million subscribers. PewDiePie is the second most popular with 111 million subscribers. To celebrate reaching 100 million subscribers, MrBeast gave away a private island which is probably a part of the reason he took the top position from PewDiePie.';const output = await answerer(question, context);setTimeout(function() {chatBox.innerHTML += "<p class='bot-message'><strong>Chatbot:</strong> " + output.answer + "</p>";21 unmodified lines2223242526272821 unmodified lines// Sets context and frames the answerasync function getAnswer(question) {const context = 'You are an expert web developer. That can answer questions about how to code in HTML, CSS, javascript, and python.';const output = await answerer(question, context);setTimeout(function() {chatBox.innerHTML += "<p class='bot-message'><strong>Chatbot:</strong> " + output.answer + "</p>";
index.js+1-1