Skip to content

Commit

Permalink
[aisingapore#61] Added comment to run model_usage in local directory
Browse files Browse the repository at this point in the history
  • Loading branch information
ktyap committed Nov 10, 2022
1 parent 421e862 commit eb76207
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sgnlp/models/dialogue_rnn/model_usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
from .postprocess import DialogueRNNPostprocessor


"""To run in local directory ("models"):
python -m dialogue_rnn.model_usage
"""

config = DialogueRNNConfig.from_pretrained("https://storage.googleapis.com/sgnlp/models/dialogue_rnn/config.json")
model = DialogueRNNModel.from_pretrained("https://storage.googleapis.com/sgnlp/models/dialogue_rnn/pytorch_model.bin", config=config)

Expand Down

0 comments on commit eb76207

Please sign in to comment.