Update app.py
Browse files
app.py
CHANGED
@@ -135,14 +135,13 @@ def bot(
|
|
135 |
generation_config=generation_config,safety_settings=safety_settings)
|
136 |
response.resolve()
|
137 |
|
138 |
-
|
139 |
-
# print(out1)
|
140 |
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
response.resolve()
|
147 |
else:
|
148 |
image_prompt = preprocess_image(image_prompt)
|
|
|
135 |
generation_config=generation_config,safety_settings=safety_settings)
|
136 |
response.resolve()
|
137 |
|
138 |
+
out1 = response.text
|
|
|
139 |
|
140 |
+
prompt = "أذكر لي آية من القران الكريم تتحدث عن أحد هذه المواضيع او اكثر: "+ out1 + " واشرح الآيه وفسرها باللغة العربية."
|
141 |
+
response = model.generate_content(
|
142 |
+
prompt,
|
143 |
+
stream=True,
|
144 |
+
generation_config=generation_config, safety_settings=safety_settings)
|
145 |
response.resolve()
|
146 |
else:
|
147 |
image_prompt = preprocess_image(image_prompt)
|