auto-commit to deploy afsar

This commit is contained in:
ALIHAN DIKEL
2024-05-04 23:41:45 +03:00
parent 7be773fe65
commit d5023691a1
9 changed files with 22 additions and 35 deletions

View File

@@ -1,40 +1,27 @@
annotated-types==0.6.0
anyio==4.3.0
certifi==2024.2.2
charset-normalizer==3.3.2
click==8.1.7
einops==0.8.0
fastapi==0.110.3
filelock==3.14.0
fsspec==2024.3.1
h11==0.14.0
huggingface-hub==0.22.2
HASS-data-detective==3.0
hassapi==0.2.1
httpcore==1.0.5
httpx==0.27.0
idna==3.7
Jinja2==3.1.3
install==1.3.5
loguru==0.7.2
MarkupSafe==2.1.5
mpmath==1.3.0
networkx==3.3
numpy==1.26.4
packaging==24.0
pillow==10.3.0
pydantic==2.7.1
pydantic_core==2.18.2
python-multipart==0.0.9
PyYAML==6.0.1
regex==2024.4.28
ollama==0.1.9
opencv-python==4.9.0.80
pandas==2.2.2
psycopg2-binary==2.9.9
python-dateutil==2.9.0.post0
pytz==2024.1
requests==2.31.0
safetensors==0.4.3
setuptools==69.5.1
ruamel.yaml==0.18.6
ruamel.yaml.clib==0.2.8
six==1.16.0
sniffio==1.3.1
starlette==0.37.2
sympy==1.12
tokenizers==0.19.1
torch
torchvision
tqdm==4.66.2
transformers==4.40.1
SQLAlchemy==2.0.29
typing_extensions==4.11.0
tzdata==2024.1
urllib3==2.2.1
uvicorn==0.29.0
wheel==0.43.0

Binary file not shown.

View File

@@ -2,10 +2,10 @@ import time
from loguru import logger
from src import tasks
from src.services.cam import CameraService
from src.services.llms import OllamaApi
from src.services.ha import HomeassistantApi
import tasks
from services.cam import CameraService
from services.llms import OllamaApi
from services.ha import HomeassistantApi
haapi = HomeassistantApi()
camera = CameraService()

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -15,7 +15,7 @@ class CameraService:
in_memory_file = io.BytesIO(byte_im)
# Save the image to a file in the tmp directory with a timestamp
timestamp = datetime.datetime.now().strftime("%Y%m%d %H%M")
timestamp = datetime.datetime.now().strftime("%Y%m%d-%H%M")
filename = f"/Users/tcudikel/Dev/agent-home-security/tmp/archive/image_{timestamp}.jpg"
with open(filename, 'wb') as f:
f.write(byte_im)

View File

@@ -8,7 +8,7 @@ def run_visual_analyze(llm, image_file):
prompt_visual = "please describe this image"
visual_analyze = llm.oneshot_multimodal(
prompt=prompt_visual,
path_image="/Users/tcudikel/Dev/agent-home-security/tmp/photo2.jpg"
path_image=image_file
)
logger.info(visual_analyze)
return visual_analyze