Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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://
|
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 |
# Отправка изображения в модель
|