hasnanmr commited on
Commit
27e23d9
·
1 Parent(s): 214f4f1

fixing code

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -9,8 +9,10 @@ import pandas as pd
9
  from tqdm import tqdm
10
 
11
  # Get the Groq API key from environment variables (in Hugging Face, this is stored as a secret)
12
- api_key = os.getenv('GROQ_API_KEY')
13
- client = Groq(api_key)
 
 
14
 
15
 
16
  con = sqlite3.connect("file::memory:?cache=shared")
 
9
  from tqdm import tqdm
10
 
11
  # Get the Groq API key from environment variables (in Hugging Face, this is stored as a secret)
12
+ client = Groq(
13
+ # This is the default and can be omitted
14
+ api_key=os.environ.get("GROQ_API_KEY"),
15
+ )
16
 
17
 
18
  con = sqlite3.connect("file::memory:?cache=shared")