RPATaskForce commited on
Commit
f4dc734
·
verified ·
1 Parent(s): 2a6a941

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -4,9 +4,8 @@
4
  import os
5
  import requests
6
  import gradio as gr
7
- from google.colab import userdata # Secure storage for API keys in Colab
8
 
9
- groq_api_key = userdata.get("GROQ_API_KEY")
10
 
11
  # Define the URL for the Groq API endpoint
12
  url = "https://api.groq.com/openai/v1/chat/completions"
 
4
  import os
5
  import requests
6
  import gradio as gr
 
7
 
8
+ groq_api_key = os.getenv("GROQ_API_KEY")
9
 
10
  # Define the URL for the Groq API endpoint
11
  url = "https://api.groq.com/openai/v1/chat/completions"