Spaces:
Running
Running
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- inference.py +3 -1
inference.py
CHANGED
|
@@ -49,7 +49,9 @@ Schema:
|
|
| 49 |
|
| 50 |
# ββ Helpers βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 51 |
|
| 52 |
-
|
|
|
|
|
|
|
| 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()
|