Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,9 @@ import PIL.Image
|
|
5 |
import io, os
|
6 |
|
7 |
# genai.configure(api_key="AIzaSyAtdSFdZ2WZv2TmJYijVz286JBX7HpddQk")
|
8 |
-
|
|
|
|
|
9 |
|
10 |
def ImageChat(image, prompt="Analyze"):
|
11 |
# Check image file and convert to a PIL Image object
|
|
|
5 |
import io, os
|
6 |
|
7 |
# genai.configure(api_key="AIzaSyAtdSFdZ2WZv2TmJYijVz286JBX7HpddQk")
|
8 |
+
api_key = os.getenv("API_TOKEN")
|
9 |
+
print (api_key)
|
10 |
+
genai.configure(api_key=api_key)
|
11 |
|
12 |
def ImageChat(image, prompt="Analyze"):
|
13 |
# Check image file and convert to a PIL Image object
|