Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,8 +7,10 @@ genai.configure(api_key=token)
|
|
7 |
# Chargez l'image
|
8 |
model = genai.GenerativeModel(model_name="gemini-pro-vision")
|
9 |
|
|
|
10 |
# Fonction pour générer le contenu
|
11 |
def generate_content(pro,image):
|
|
|
12 |
response = model.generate_content([pro, image])
|
13 |
print(response.text)
|
14 |
e = response.text
|
|
|
7 |
# Chargez l'image
|
8 |
model = genai.GenerativeModel(model_name="gemini-pro-vision")
|
9 |
|
10 |
+
e =""
|
11 |
# Fonction pour générer le contenu
|
12 |
def generate_content(pro,image):
|
13 |
+
global e
|
14 |
response = model.generate_content([pro, image])
|
15 |
print(response.text)
|
16 |
e = response.text
|