Spaces:
Configuration error
Configuration error
File size: 652 Bytes
e14dd3f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
import asyncio
from src.utils.helper import setup_logging, load_environment
from src.utils.insurance_utils import PolicyGenerator
from PIL import Image
async def test_workflow():
# Nastavitev okolja
setup_logging("logs")
load_environment()
# Pripravite testne podatke
test_image_path = "pot/do/testne/slike.jpg"
test_data = {
"image_path": test_image_path,
"location": "Ljubljana, Slovenia",
"coverage_type": "property"
}
# Zagon glavne aplikacije
from src.main import main
await main("logs")
if __name__ == "__main__":
asyncio.run(test_workflow()) |