Buckets:

Mr-DS-ML-85's picture
download
raw
888 Bytes
#!/usr/bin/env python3
"""Minimal Space-side inference example (also used as a smoke test).
python3 examples/smoke.py # inside the repo root
"""
import sys
from pathlib import Path
sys.path.insert(0, str(Path(__file__).resolve().parent.parent))
from inference import SyFox # noqa: E402
PROBES = [
"I was charged twice on my last invoice, please refund.",
"Congratulations! You won a £1000 prize. Call 09058094518 now!",
"The quarterback threw five touchdowns in the season opener.",
"আমার কার্ড থেকে দুইবার টাকা কেটেছে, ফেরত চাই।",
]
if __name__ == "__main__":
m = SyFox()
for s in PROBES:
r = m.decide(s)
a = r["answers"]["domain"]
print(f"[{r['script']:9s}] {a.get('choice'):5s} "
f"conf={a.get('confidence', 0):.3f} {s[:55]}")

Xet Storage Details

Size:
888 Bytes
·
Xet hash:
7879f4eb345decebc85d55c8c84d9839b8c1db42cd1fe63554e7a5af678a9f30

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.