Skip to content

Commit

Permalink
MODIFIED: blog generator copy button
Browse files Browse the repository at this point in the history
  • Loading branch information
AquibPy committed May 2, 2024
1 parent fb9fa30 commit 3a74fca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/blog_generator.html
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ <h1>Blog Generator</h1>
loadingSpinner.style.display = 'flex';
btnContainer.style.display = 'none';

const response = await fetch('https://llm-pgc4.onrender.com/blog_generator', {
const response = await fetch('http://127.0.0.1:8000/blog_generator', {
method: 'POST',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
Expand All @@ -294,7 +294,7 @@ <h1>Blog Generator</h1>
});

function copyToClipboard() {
const blogContent = output.innerHTML;
const blogContent = output.innerText;
navigator.clipboard.writeText(blogContent)
.then(() => {
showNotification('Copied!');
Expand Down

0 comments on commit 3a74fca

Please sign in to comment.