Update app.py
Browse files
app.py
CHANGED
@@ -87,8 +87,6 @@ e =""
|
|
87 |
def generate_content(image,choix):
|
88 |
global e
|
89 |
|
90 |
-
if not image:
|
91 |
-
return "Image Requis ! "
|
92 |
|
93 |
|
94 |
if choix == "sans":
|
@@ -101,6 +99,10 @@ def generate_content(image,choix):
|
|
101 |
response = model.generate_content([pre, image])
|
102 |
print(response.text)
|
103 |
e = response.text
|
|
|
|
|
|
|
|
|
104 |
return e
|
105 |
|
106 |
|
|
|
87 |
def generate_content(image,choix):
|
88 |
global e
|
89 |
|
|
|
|
|
90 |
|
91 |
|
92 |
if choix == "sans":
|
|
|
99 |
response = model.generate_content([pre, image])
|
100 |
print(response.text)
|
101 |
e = response.text
|
102 |
+
else:
|
103 |
+
e =" djo"
|
104 |
+
|
105 |
+
|
106 |
return e
|
107 |
|
108 |
|