Nitish commited on
Commit
59ae86d
Β·
1 Parent(s): 16e8736

Please provide the specific changes or the diff for `inference.py` so I can generate an accurate commit message for you.

Browse files
Files changed (1) hide show
  1. inference.py +3 -1
inference.py CHANGED
@@ -49,7 +49,9 @@ Schema:
49
 
50
  # ── Helpers ───────────────────────────────────────────────────────────────────
51
 
52
- def env_post(path: str, data: dict | None = None, params: dict | None = None) -> dict:
 
 
53
  url = f"{ENV_BASE_URL}{path}"
54
  resp = requests.post(url, json=data or {}, params=params or {}, timeout=30)
55
  resp.raise_for_status()
 
49
 
50
  # ── Helpers ───────────────────────────────────────────────────────────────────
51
 
52
+ from typing import Optional
53
+
54
+ def env_post(path: str, data: Optional[dict] = None, params: Optional[dict] = None) -> dict:
55
  url = f"{ENV_BASE_URL}{path}"
56
  resp = requests.post(url, json=data or {}, params=params or {}, timeout=30)
57
  resp.raise_for_status()