Spaces:
Running
Running
Update utils.py
Browse files
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.
|
6 |
def get_github_token():
|
7 |
-
os.
|
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
|