Spaces:
Sleeping
Sleeping
usmanyousaf
commited on
Commit
•
831c222
1
Parent(s):
bccc0d6
Update app.py
Browse files
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 |
-
|
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",
|