Update server.js
Browse files
server.js
CHANGED
|
@@ -26,9 +26,7 @@ app.all('/', (req, res, next) => {
|
|
| 26 |
}
|
| 27 |
|
| 28 |
try {
|
| 29 |
-
|
| 30 |
-
const fetch = (await import('node-fetch')).default;
|
| 31 |
-
|
| 32 |
console.log('Sending request to Hugging Face API...');
|
| 33 |
|
| 34 |
const response = await fetch('https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-3-medium', {
|
|
|
|
| 26 |
}
|
| 27 |
|
| 28 |
try {
|
| 29 |
+
|
|
|
|
|
|
|
| 30 |
console.log('Sending request to Hugging Face API...');
|
| 31 |
|
| 32 |
const response = await fetch('https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-3-medium', {
|