Skip to content

Commit 97fe968

Browse files
Remove Beta From URL in Read Examples
1 parent 0b263a8 commit 97fe968

File tree

4 files changed

+24
-20
lines changed

4 files changed

+24
-20
lines changed

examples/analyze/intent/main.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@
2222
def main():
2323
try:
2424
# STEP 1 Create a Deepgram client using the API key in the environment variables
25-
config = DeepgramClientOptions(
26-
# verbose=logging.SPAM,
27-
url="api.beta.deepgram.com",
28-
)
29-
deepgram = DeepgramClient("", config)
25+
# config = DeepgramClientOptions(
26+
# verbose=logging.SPAM,
27+
# )
28+
# deepgram = DeepgramClient("", config)
29+
# OR use defaults
30+
deepgram = DeepgramClient()
3031

3132
# STEP 2 Call the transcribe_file method on the prerecorded class
3233
with open(TEXT_FILE, "r") as file:

examples/analyze/sentiment/main.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@
2222
def main():
2323
try:
2424
# STEP 1 Create a Deepgram client using the API key in the environment variables
25-
config = DeepgramClientOptions(
26-
# verbose=logging.SPAM,
27-
url="api.beta.deepgram.com",
28-
)
29-
deepgram = DeepgramClient("", config)
25+
# config = DeepgramClientOptions(
26+
# verbose=logging.SPAM,
27+
# )
28+
# deepgram = DeepgramClient("", config)
29+
# OR use defaults
30+
deepgram = DeepgramClient()
3031

3132
# STEP 2 Call the transcribe_file method on the prerecorded class
3233
with open(TEXT_FILE, "r") as file:

examples/analyze/summary/main.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@
2222
def main():
2323
try:
2424
# STEP 1 Create a Deepgram client using the API key in the environment variables
25-
config = DeepgramClientOptions(
26-
# verbose=logging.SPAM,
27-
url="api.beta.deepgram.com",
28-
)
29-
deepgram = DeepgramClient("", config)
25+
# config = DeepgramClientOptions(
26+
# verbose=logging.SPAM,
27+
# )
28+
# deepgram = DeepgramClient("", config)
29+
# OR use defaults
30+
deepgram = DeepgramClient()
3031

3132
# STEP 2 Call the transcribe_file method on the prerecorded class
3233
with open(TEXT_FILE, "r") as file:

examples/analyze/topic/main.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@
2222
def main():
2323
try:
2424
# STEP 1 Create a Deepgram client using the API key in the environment variables
25-
config = DeepgramClientOptions(
26-
# verbose=logging.SPAM,
27-
url="api.beta.deepgram.com",
28-
)
29-
deepgram = DeepgramClient("", config)
25+
# config = DeepgramClientOptions(
26+
# verbose=logging.SPAM,
27+
# )
28+
# deepgram = DeepgramClient("", config)
29+
# OR use defaults
30+
deepgram = DeepgramClient()
3031

3132
# STEP 2 Call the transcribe_file method on the prerecorded class
3233
with open(TEXT_FILE, "r") as file:

0 commit comments

Comments
 (0)