AlexCool2024 commited on
Commit
63f8fb6
·
verified ·
1 Parent(s): 9572852

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ if uploaded_file is not None:
35
  _, buf = cv2.imencode('.jpg', frame)
36
  files = {'file': ('image.jpg', buf.tobytes(), 'image/jpeg')}
37
 
38
- model_url = "https://api-inference.huggingface.co/models/nttdataspain/Image-To-Text-Lora-ViT"
39
  headers = {"Authorization": f"Bearer {os.getenv('HUGGINGFACE_TOKEN_READ')}"}
40
 
41
  # Отправка изображения в модель
 
35
  _, buf = cv2.imencode('.jpg', frame)
36
  files = {'file': ('image.jpg', buf.tobytes(), 'image/jpeg')}
37
 
38
+ model_url = "https://hf.space/embed/nttdataspain/Image-To-Text-Lora-ViT/run/predict"
39
  headers = {"Authorization": f"Bearer {os.getenv('HUGGINGFACE_TOKEN_READ')}"}
40
 
41
  # Отправка изображения в модель