Spaces:
Sleeping
Sleeping
dillonlaird
commited on
Commit
·
451d869
1
Parent(s):
040974a
updated predictor
Browse files
app.py
CHANGED
@@ -106,7 +106,10 @@ def _show_error_message(expected_len, preds, img_file, pred_name):
|
|
106 |
@st.cache_data
|
107 |
def inference(image_file) -> List[Prediction]:
|
108 |
image = Image.open(image_file).convert("RGB")
|
109 |
-
predictor = Predictor(
|
|
|
|
|
|
|
110 |
logging.info("Running Poker prediction")
|
111 |
preds = predictor.predict(image)
|
112 |
preds = _dedup_preds(preds)
|
|
|
106 |
@st.cache_data
|
107 |
def inference(image_file) -> List[Prediction]:
|
108 |
image = Image.open(image_file).convert("RGB")
|
109 |
+
predictor = Predictor(
|
110 |
+
endpoint_id="2549edc1-35ad-45aa-b27e-f49e79f5922e",
|
111 |
+
api_key="land_sk_JkygHlib8SgryZUgumM6r8GWYfQqiKdE36xDzo4K85fDihpnuG",
|
112 |
+
)
|
113 |
logging.info("Running Poker prediction")
|
114 |
preds = predictor.predict(image)
|
115 |
preds = _dedup_preds(preds)
|