Docfile commited on
Commit
feefb08
·
verified ·
1 Parent(s): f1df67d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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