Skip to content

Commit

Permalink
add an example on how to download the module manually.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 207548511
  • Loading branch information
TensorFlow Hub Authors authored and andresusanopinto committed Aug 6, 2018
1 parent db01aee commit d7b8d36
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions docs/common_issues.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,15 @@ If the above errors and fixes do not work, one can try to manually download a
module by simulating the protocol of attaching `?tf-hub-format=compressed`
to the URL to download a tar compressed file that has to be manually decompressed
into a local file. The path to the local file can then be used instead of the
URL.



URL. Here is a quick example:

```bash
# Create a folder for the TF hub module.
$ mkdir /tmp/moduleA
# Download the module, and uncompress it to the destination folder. You might want to do this manually.
$ curl -L "https://tfhub.dev/google/universal-sentence-encoder/2?tf-hub-format=compressed" | tar -zxvC /tmp/moduleA
# Test to make sure it works.
$ python
> import tensorflow_hub as hub
> hub.Module("/tmp/moduleA")
```

0 comments on commit d7b8d36

Please sign in to comment.