diff --git a/examples/example_ai_translate.py b/examples/example_ai_translate.py index aeb87c6..73c555a 100644 --- a/examples/example_ai_translate.py +++ b/examples/example_ai_translate.py @@ -1,5 +1,6 @@ #!/usr/bin/env python +import os import sys import CloudFlare @@ -16,6 +17,9 @@ def translate_call(cf): def doit(account_name, english_text): + # Or place these in your cloudflare.cfg file + os.environ['CLOUDFLARE_API_EXTRAS'] = '/accounts/:id/ai/run/@cf/meta/m2m100-1.2b' + cf = CloudFlare.CloudFlare() try: