| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 34e9a4a commit 44fa98f
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -224,7 +224,7 @@ ADD patches/keras_internal_test.py /opt/conda/lib/python3.10/site-packages/tenso | |||
| 224 | 224 | # We ignore dependencies since tf2.15 and Keras 3.* should work despite pip saying it won't. | |
| 225 | 225 | # Currently, keras tries to install a nightly version of tf 2.16: https://github.com/keras-team/keras/blob/fe2f54aa5bc42fb23a96449cf90434ab9bb6a2cd/requirements.txt#L2 | |
| 226 | 226 | # b/341360061 Unpin keras-nlp once kaggle-hub is able to provide task.json file when requested | |
| 227 | - RUN pip install --no-deps "keras>3" keras-cv "keras-nlp==0.9.3" namex && \ | ||
| 227 | + RUN pip install --no-deps "keras>3" keras-cv keras-nlp namex && \ | ||
| 228 | 228 | /tmp/clean-layer.sh | |
| 229 | 229 | ||
| 230 | 230 | # b/328788268 libpysal 4.10 seems to fail with "module 'shapely' has no attribute 'Geometry'. Did you mean: 'geometry'" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -26,14 +26,12 @@ def do_GET(self): | |||
| 26 | 26 | path = m.group(2) | |
| 27 | 27 | filepath = f"/input/tests/data/kagglehub/models/{model_handle}/{path}" | |
| 28 | 28 | if not os.path.isfile(filepath): | |
| 29 | - raise ValueError(( | ||
| 30 | - "Internet is disabled in our tests\n" | ||
| 31 | - "kagglehub uses a fake API server\n" | ||
| 32 | - f"Use `kagglehub.model_download('{model_handle}', path='{path}')` to download the missing file\n" | ||
| 33 | - f"and copy it to `./docker-python/tests/data/kagglehub/models/{model_handle}/{path}`\n" | ||
| 34 | - )) | ||
| 29 | + self.send_error(404, "Internet is disabled in our tests " | ||
| 30 | + "kagglehub uses a fake API server. " | ||
| 31 | + f"Use `kagglehub.model_download('{model_handle}', path='{path}')` to download the missing file " | ||
| 32 | + f"and copy it to `./docker-python/tests/data/kagglehub/models/{model_handle}/{path}`.") | ||
| 35 | 33 | return | |
| 36 | - | ||
| 34 | + | ||
| 37 | 35 | with open(filepath, "rb") as f: | |
| 38 | 36 | self.send_response(200) | |
| 39 | 37 | self.send_header("Content-type", "application/octet-stream") | |
| Back | FazBrowse Home | New Git URL |
0 commit comments