We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c91b64 commit 3c20e16Copy full SHA for 3c20e16
transcribe_me/summarization/summarizer.py
@@ -41,7 +41,8 @@ def generate_summary(
41
summary = openai_response.choices[0].message.content.strip()
42
except openai.error.RateLimitError as e:
43
print(f"{Fore.YELLOW}Rate limit reached, retrying in a bit...")
44
- raise e
+ except e:
45
+ print(f"{Fore.RED}Error: {e}")
46
elif "anthropic" in platform:
47
anthropic_client = anthropic.Anthropic(api_key=ANTHROPIC_API_KEY)
48
try:
@@ -55,8 +56,8 @@ def generate_summary(
55
56
summary = anthropic_response.content[0].text
57
except anthropic.error.RateLimitError as e:
58
59
-
60
61
return summary
62
63
0 commit comments