SatyamSinghal commited on
Commit
2a9be90
·
verified ·
1 Parent(s): 7109c50

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,10 +1,11 @@
1
  import gradio as gr
2
  import openai
3
  import langdetect as detect
 
4
 
5
 
6
  # Set up OpenAI API with custom Groq endpoint
7
- openai.api_key = "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"
8
  openai.api_base = "https://api.groq.com/openai/v1"
9
 
10
  # Function to get the Groq model's response
 
1
  import gradio as gr
2
  import openai
3
  import langdetect as detect
4
+ import os
5
 
6
 
7
  # Set up OpenAI API with custom Groq endpoint
8
+ openai.api_key = os.getenv("PrepBuddy_API_KEY")
9
  openai.api_base = "https://api.groq.com/openai/v1"
10
 
11
  # Function to get the Groq model's response