saherPervaiz commited on
Commit
29f1863
·
verified ·
1 Parent(s): 2745b9c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -4,11 +4,11 @@ import requests
4
  import os
5
  from groq import Groq
6
 
7
- # Set the Groq API Key directly in the code
8
- GROQ_API_KEY = os.getenv("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") # Make sure your API key is stored in the environment variable
9
 
10
  # Initialize the Groq client
11
- client = Groq(api_key=GROQ_API_KEY)
12
 
13
  # Function to load and preprocess data
14
  @st.cache_data
 
4
  import os
5
  from groq import Groq
6
 
7
+ from google.colab import userdata
8
+ api=userdata.get('demo')
9
 
10
  # Initialize the Groq client
11
+ client = Groq(api_key=api)
12
 
13
  # Function to load and preprocess data
14
  @st.cache_data