Skip to content

Instantly share code, notes, and snippets.

@aolney
Created September 29, 2019 15:44
Show Gist options
  • Save aolney/2b2948a1c41827e42069a767edfdd0ee to your computer and use it in GitHub Desktop.
Save aolney/2b2948a1c41827e42069a767edfdd0ee to your computer and use it in GitHub Desktop.
AllenNLP demo docker launcher with custom model file
#!/bin/bash
mkdir -p $HOME/.allennlp
sudo docker run --restart always -p 8000:8000 -v $HOME/.allennlp:/root/.allennlp allennlp/demo --demo-dir /stage/allennlp/demo --models-file /root/.allennlp/custom_models.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment