Rooni commited on
Commit
3146fbf
·
verified ·
1 Parent(s): bea25e8

Update server.js

Browse files
Files changed (1) hide show
  1. server.js +1 -3
server.js CHANGED
@@ -26,9 +26,7 @@ app.all('/', (req, res, next) => {
26
  }
27
 
28
  try {
29
- // Динамический импорт node-fetch
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', {