Update app.py
Browse files
app.py
CHANGED
|
@@ -32,17 +32,16 @@ os.makedirs('solutions', exist_ok=True)
|
|
| 32 |
ALLOWED_EXTENSIONS = {'png', 'jpg', 'jpeg', 'gif', 'bmp', 'tiff'}
|
| 33 |
|
| 34 |
# Configuration Gemini API
|
| 35 |
-
os.environ["GEMINI_API_KEY"] = os.environ.get("GEMINI_API_KEY", "
|
| 36 |
|
| 37 |
# Dictionnaire global pour stocker les tâches en cours
|
| 38 |
active_tasks = {}
|
| 39 |
|
| 40 |
# Configuration du LLM
|
| 41 |
llm = LLM(
|
| 42 |
-
model="gemini/gemini-2.
|
| 43 |
temperature=0.1,
|
| 44 |
-
|
| 45 |
-
max_tokens=8000,
|
| 46 |
)
|
| 47 |
|
| 48 |
# Paramètres du pipeline
|
|
|
|
| 32 |
ALLOWED_EXTENSIONS = {'png', 'jpg', 'jpeg', 'gif', 'bmp', 'tiff'}
|
| 33 |
|
| 34 |
# Configuration Gemini API
|
| 35 |
+
os.environ["GEMINI_API_KEY"] = os.environ.get("GEMINI_API_KEY", "AIzaSyAMYpF67aqFnWDJESWOx1dC-w3sEU29VcM")
|
| 36 |
|
| 37 |
# Dictionnaire global pour stocker les tâches en cours
|
| 38 |
active_tasks = {}
|
| 39 |
|
| 40 |
# Configuration du LLM
|
| 41 |
llm = LLM(
|
| 42 |
+
model="gemini/gemini-2.5-flash",
|
| 43 |
temperature=0.1,
|
| 44 |
+
|
|
|
|
| 45 |
)
|
| 46 |
|
| 47 |
# Paramètres du pipeline
|