Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion transform/sample-code/extract_quickstart.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
# This isn't best practice outside of local testing on your own machine. Once
# you've added your real key, don't share this file or check it into any
# repositories.
API_KEY = ""
API_KEY = "YOUR_API_KEY_HERE"
if API_KEY in ("YOUR_API_KEY_HERE", ""):
raise SystemExit("Set API_KEY to your Unstructured API key before running this script.")
API_URL = "https://platform-api.transform.unstructured.io"
# The local directory containing the file (or files) you want to process.
INPUT_DIR = "/full/path/to/your/input/directory"
Expand Down
4 changes: 3 additions & 1 deletion transform/sample-code/partition_quickstart.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
# This isn't best practice outside of local testing on your own machine. Once
# you've added your real key, don't share this file or check it into any
# repositories.
API_KEY = ""
API_KEY = "YOUR_API_KEY_HERE"
if API_KEY in ("YOUR_API_KEY_HERE", ""):
raise SystemExit("Set API_KEY to your Unstructured API key before running this script.")
API_URL = "https://platform-api.transform.unstructured.io"
# The local directory containing the file (or files) you want to process.
INPUT_DIR = "/full/path/to/your/input/directory"
Expand Down
Loading