Spaces:
Sleeping
Sleeping
Delete core/__init__.py
Browse files- core/__init__.py +0 -76
core/__init__.py
DELETED
|
@@ -1,76 +0,0 @@
|
|
| 1 |
-
"""
|
| 2 |
-
Core utilities for Design System Extractor v2.
|
| 3 |
-
"""
|
| 4 |
-
|
| 5 |
-
from core.token_schema import (
|
| 6 |
-
TokenSource,
|
| 7 |
-
Confidence,
|
| 8 |
-
Viewport,
|
| 9 |
-
PageType,
|
| 10 |
-
ColorToken,
|
| 11 |
-
TypographyToken,
|
| 12 |
-
SpacingToken,
|
| 13 |
-
RadiusToken,
|
| 14 |
-
ShadowToken,
|
| 15 |
-
ExtractedTokens,
|
| 16 |
-
NormalizedTokens,
|
| 17 |
-
FinalTokens,
|
| 18 |
-
WorkflowState,
|
| 19 |
-
)
|
| 20 |
-
|
| 21 |
-
from core.color_utils import (
|
| 22 |
-
parse_color,
|
| 23 |
-
normalize_hex,
|
| 24 |
-
get_contrast_ratio,
|
| 25 |
-
check_wcag_compliance,
|
| 26 |
-
generate_color_ramp,
|
| 27 |
-
generate_accessible_ramp,
|
| 28 |
-
categorize_color,
|
| 29 |
-
suggest_color_name,
|
| 30 |
-
)
|
| 31 |
-
|
| 32 |
-
from core.hf_inference import (
|
| 33 |
-
HFInferenceClient,
|
| 34 |
-
get_inference_client,
|
| 35 |
-
complete,
|
| 36 |
-
complete_async,
|
| 37 |
-
get_model_info,
|
| 38 |
-
AVAILABLE_MODELS,
|
| 39 |
-
AGENT_MODEL_RECOMMENDATIONS,
|
| 40 |
-
)
|
| 41 |
-
|
| 42 |
-
__all__ = [
|
| 43 |
-
# Enums
|
| 44 |
-
"TokenSource",
|
| 45 |
-
"Confidence",
|
| 46 |
-
"Viewport",
|
| 47 |
-
"PageType",
|
| 48 |
-
# Token models
|
| 49 |
-
"ColorToken",
|
| 50 |
-
"TypographyToken",
|
| 51 |
-
"SpacingToken",
|
| 52 |
-
"RadiusToken",
|
| 53 |
-
"ShadowToken",
|
| 54 |
-
# Result models
|
| 55 |
-
"ExtractedTokens",
|
| 56 |
-
"NormalizedTokens",
|
| 57 |
-
"FinalTokens",
|
| 58 |
-
"WorkflowState",
|
| 59 |
-
# Color utilities
|
| 60 |
-
"parse_color",
|
| 61 |
-
"normalize_hex",
|
| 62 |
-
"get_contrast_ratio",
|
| 63 |
-
"check_wcag_compliance",
|
| 64 |
-
"generate_color_ramp",
|
| 65 |
-
"generate_accessible_ramp",
|
| 66 |
-
"categorize_color",
|
| 67 |
-
"suggest_color_name",
|
| 68 |
-
# HF Inference
|
| 69 |
-
"HFInferenceClient",
|
| 70 |
-
"get_inference_client",
|
| 71 |
-
"complete",
|
| 72 |
-
"complete_async",
|
| 73 |
-
"get_model_info",
|
| 74 |
-
"AVAILABLE_MODELS",
|
| 75 |
-
"AGENT_MODEL_RECOMMENDATIONS",
|
| 76 |
-
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|