usmanyousaf commited on
Commit
831c222
1 Parent(s): bccc0d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -5,12 +5,12 @@ from PIL import Image, ImageEnhance
5
  import base64
6
  from groq import Groq
7
  import urllib
 
8
  logging.basicConfig(level=logging.INFO)
9
 
10
 
11
-
12
- OPENAI_API_KEY = "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"
13
- client = Groq(api_key=OPENAI_API_KEY)
14
 
15
  st.set_page_config(
16
  page_title="app.py",
 
5
  import base64
6
  from groq import Groq
7
  import urllib
8
+ import os
9
  logging.basicConfig(level=logging.INFO)
10
 
11
 
12
+ api_key = os.getenv("OPENAI_API_KEY")
13
+ client = Groq(api_key=api_key)
 
14
 
15
  st.set_page_config(
16
  page_title="app.py",