From 97fe968a57aab889baeecdb83eb811f2ec47baa4 Mon Sep 17 00:00:00 2001 From: David vonThenen <12752197+dvonthenen@users.noreply.github.com> Date: Thu, 18 Jan 2024 06:53:12 -0800 Subject: [PATCH] Remove Beta From URL in Read Examples --- examples/analyze/intent/main.py | 11 ++++++----- examples/analyze/sentiment/main.py | 11 ++++++----- examples/analyze/summary/main.py | 11 ++++++----- examples/analyze/topic/main.py | 11 ++++++----- 4 files changed, 24 insertions(+), 20 deletions(-) diff --git a/examples/analyze/intent/main.py b/examples/analyze/intent/main.py index ed453c48..4c3eb964 100644 --- a/examples/analyze/intent/main.py +++ b/examples/analyze/intent/main.py @@ -22,11 +22,12 @@ def main(): try: # STEP 1 Create a Deepgram client using the API key in the environment variables - config = DeepgramClientOptions( - # verbose=logging.SPAM, - url="api.beta.deepgram.com", - ) - deepgram = DeepgramClient("", config) + # config = DeepgramClientOptions( + # verbose=logging.SPAM, + # ) + # deepgram = DeepgramClient("", config) + # OR use defaults + deepgram = DeepgramClient() # STEP 2 Call the transcribe_file method on the prerecorded class with open(TEXT_FILE, "r") as file: diff --git a/examples/analyze/sentiment/main.py b/examples/analyze/sentiment/main.py index 2db4439e..64affbb6 100644 --- a/examples/analyze/sentiment/main.py +++ b/examples/analyze/sentiment/main.py @@ -22,11 +22,12 @@ def main(): try: # STEP 1 Create a Deepgram client using the API key in the environment variables - config = DeepgramClientOptions( - # verbose=logging.SPAM, - url="api.beta.deepgram.com", - ) - deepgram = DeepgramClient("", config) + # config = DeepgramClientOptions( + # verbose=logging.SPAM, + # ) + # deepgram = DeepgramClient("", config) + # OR use defaults + deepgram = DeepgramClient() # STEP 2 Call the transcribe_file method on the prerecorded class with open(TEXT_FILE, "r") as file: diff --git a/examples/analyze/summary/main.py b/examples/analyze/summary/main.py index dd8039b4..5d70cbd2 100644 --- a/examples/analyze/summary/main.py +++ b/examples/analyze/summary/main.py @@ -22,11 +22,12 @@ def main(): try: # STEP 1 Create a Deepgram client using the API key in the environment variables - config = DeepgramClientOptions( - # verbose=logging.SPAM, - url="api.beta.deepgram.com", - ) - deepgram = DeepgramClient("", config) + # config = DeepgramClientOptions( + # verbose=logging.SPAM, + # ) + # deepgram = DeepgramClient("", config) + # OR use defaults + deepgram = DeepgramClient() # STEP 2 Call the transcribe_file method on the prerecorded class with open(TEXT_FILE, "r") as file: diff --git a/examples/analyze/topic/main.py b/examples/analyze/topic/main.py index 792482d9..1f64b434 100644 --- a/examples/analyze/topic/main.py +++ b/examples/analyze/topic/main.py @@ -22,11 +22,12 @@ def main(): try: # STEP 1 Create a Deepgram client using the API key in the environment variables - config = DeepgramClientOptions( - # verbose=logging.SPAM, - url="api.beta.deepgram.com", - ) - deepgram = DeepgramClient("", config) + # config = DeepgramClientOptions( + # verbose=logging.SPAM, + # ) + # deepgram = DeepgramClient("", config) + # OR use defaults + deepgram = DeepgramClient() # STEP 2 Call the transcribe_file method on the prerecorded class with open(TEXT_FILE, "r") as file: