Skip to content

Commit

Permalink
keep prompts same after send
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisDiachkov committed Sep 8, 2024
1 parent 180004b commit ef2e2e3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/AGISwarm/text2image_ms/app/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,6 @@ function sendMessage() {

user_message_container = get_user_message_container(prompt, negative_prompt);
document.getElementById('chat-output').insertBefore(user_message_container, document.getElementById('chat-output').firstChild);
document.getElementById('prompt').value = '';
document.getElementById('negative_prompt').value = '';
document.getElementById('prompt').focus();

ws.send(JSON.stringify(message));
console.log('Message sent:', message);
Expand Down

0 comments on commit ef2e2e3

Please sign in to comment.