Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,7 +21,7 @@ def send_email(api_key, inbox_id, subject, content, from_email, to_email):
|
|
| 21 |
|
| 22 |
# Fonction pour générer du texte avec Gemini
|
| 23 |
def generate_text_with_gemini(api_key, prompt):
|
| 24 |
-
url = "https://
|
| 25 |
headers = {
|
| 26 |
"Authorization": f"Bearer {api_key}",
|
| 27 |
"Content-Type": "application/json"
|
|
|
|
| 21 |
|
| 22 |
# Fonction pour générer du texte avec Gemini
|
| 23 |
def generate_text_with_gemini(api_key, prompt):
|
| 24 |
+
url = "https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash-latest:generateContent?key=AIzaSyCJVUr-76I4TL42X98d9U0THbRD3MKlB38'" # Remplacez par l'URL correcte de l'API Gemini
|
| 25 |
headers = {
|
| 26 |
"Authorization": f"Bearer {api_key}",
|
| 27 |
"Content-Type": "application/json"
|