Spaces:
Running
Running
Update index.html
Browse files- index.html +12 -19
index.html
CHANGED
|
@@ -1,19 +1,12 @@
|
|
| 1 |
-
<
|
| 2 |
-
<
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
<p>
|
| 14 |
-
Also don't forget to check the
|
| 15 |
-
<a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
|
| 16 |
-
</p>
|
| 17 |
-
</div>
|
| 18 |
-
</body>
|
| 19 |
-
</html>
|
|
|
|
| 1 |
+
<textarea id="userInput" rows="4" cols="50"></textarea>
|
| 2 |
+
<button onclick="getResponse()">Get Response</button>
|
| 3 |
+
<div id="response"></div>
|
| 4 |
+
|
| 5 |
+
<script src="ai.js"></script>
|
| 6 |
+
<script>
|
| 7 |
+
function getResponse() {
|
| 8 |
+
const input = document.getElementById('userInput').value;
|
| 9 |
+
const response = generateResponse(input);
|
| 10 |
+
document.getElementById('response').innerText = response;
|
| 11 |
+
}
|
| 12 |
+
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|