Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,9 +2,10 @@ import google.generativeai as genai
|
|
2 |
import gradio as gr
|
3 |
import numpy as np
|
4 |
import PIL.Image
|
5 |
-
import io
|
6 |
|
7 |
-
genai.configure(api_key="AIzaSyAtdSFdZ2WZv2TmJYijVz286JBX7HpddQk")
|
|
|
8 |
|
9 |
def ImageChat(image, prompt="Analyze"):
|
10 |
# Check image file and convert to a PIL Image object
|
|
|
2 |
import gradio as gr
|
3 |
import numpy as np
|
4 |
import PIL.Image
|
5 |
+
import io, os
|
6 |
|
7 |
+
# genai.configure(api_key="AIzaSyAtdSFdZ2WZv2TmJYijVz286JBX7HpddQk")
|
8 |
+
genai.configure(api_key=os.environ.getattribute("API_TOKEN"))
|
9 |
|
10 |
def ImageChat(image, prompt="Analyze"):
|
11 |
# Check image file and convert to a PIL Image object
|