HugoVoxx commited on
Commit
fb4253b
1 Parent(s): 98cdd7e

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +2 -2
utils.py CHANGED
@@ -2,9 +2,9 @@ import subprocess, os
2
  import regex as re
3
  from deep_translator import GoogleTranslator
4
  def get_grog_api():
5
- os.environ["GROQ_API_KEY"]="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"
6
  def get_github_token():
7
- os.environ['GITHUB_TOKEN'] ="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"
8
  def translate(input:str) -> str:
9
  translated = GoogleTranslator(source='vi', target='en').translate(text=input)
10
  return translated
 
2
  import regex as re
3
  from deep_translator import GoogleTranslator
4
  def get_grog_api():
5
+ return os.get_env("GROQ_API_KEY")
6
  def get_github_token():
7
+ return os.get_env("GITHUB_TOKEN")
8
  def translate(input:str) -> str:
9
  translated = GoogleTranslator(source='vi', target='en').translate(text=input)
10
  return translated