Spaces:
Running on Zero
Running on Zero
File size: 736 Bytes
f8768df c4aee46 f8768df | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | """Run the general-economy example shown in the README."""
from __future__ import annotations
from range_curate.examples.general_economy import RelevanceEngine
def main() -> None:
engine = RelevanceEngine(workers=1)
decision = engine.predict(
(
"CPI inflation cooled after the Federal Reserve cut the federal funds rate. "
"The S&P 500 and Nasdaq-100 advanced."
),
timestamp="2025-01-15T10:30:00-05:00",
article_id="economy-example",
source="example",
)
print("status:", decision.status)
print("accepted:", decision.accepted)
print("markets:", ", ".join(decision.relevant_to))
if __name__ == "__main__":
main()
|