Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,10 @@ import google.generativeai as genai
|
|
2 |
import gradio as gr
|
3 |
import numpy as np
|
4 |
import PIL.Image
|
|
|
5 |
|
6 |
-
|
|
|
7 |
|
8 |
def ImageChat(image):
|
9 |
|
|
|
2 |
import gradio as gr
|
3 |
import numpy as np
|
4 |
import PIL.Image
|
5 |
+
import os
|
6 |
|
7 |
+
api_key = os.getenv(GEMINI_API_KEY)
|
8 |
+
genai.configure(api_key = api_key)
|
9 |
|
10 |
def ImageChat(image):
|
11 |
|