Spaces:
Runtime error
Runtime error
aus10powell
commited on
Commit
•
7020549
1
Parent(s):
7d2a165
Update static/main.js
Browse files- static/main.js +3 -0
static/main.js
CHANGED
@@ -1,4 +1,6 @@
|
|
|
|
1 |
const generateButton = document.getElementById('generate');
|
|
|
2 |
generateButton.addEventListener('click', async () => {
|
3 |
const accountSelect = document.getElementById('account');
|
4 |
const account = accountSelect.options[accountSelect.selectedIndex].value;
|
@@ -7,6 +9,7 @@ generateButton.addEventListener('click', async () => {
|
|
7 |
const outputTextArea = document.getElementById('output');
|
8 |
outputTextArea.value = 'Loading and running model...';
|
9 |
|
|
|
10 |
try {
|
11 |
const response = await fetch('/api/generate', {
|
12 |
method: 'POST',
|
|
|
1 |
+
|
2 |
const generateButton = document.getElementById('generate');
|
3 |
+
|
4 |
generateButton.addEventListener('click', async () => {
|
5 |
const accountSelect = document.getElementById('account');
|
6 |
const account = accountSelect.options[accountSelect.selectedIndex].value;
|
|
|
9 |
const outputTextArea = document.getElementById('output');
|
10 |
outputTextArea.value = 'Loading and running model...';
|
11 |
|
12 |
+
|
13 |
try {
|
14 |
const response = await fetch('/api/generate', {
|
15 |
method: 'POST',
|