Docfile commited on
Commit
0e91a53
·
verified ·
1 Parent(s): 923bcb0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -155,12 +155,9 @@ def gpt_francais():
155
  model_to_use = DEEPTHINK_MODEL_NAME if use_deepthink else STANDARD_MODEL_NAME
156
  logging.info(f"Modèle utilisé : {model_to_use}")
157
 
158
- try:
159
- system_instruction = load_prompt()
160
- except Exception as e:
161
- logging.exception("Erreur lors du chargement du prompt système.")
162
- system_instruction = "Tu es un assistant spécialisé en français."
163
-
164
  user_prompt = f"Sujet: {french_prompt}\nType: {choix}\nStyle: {style}"
165
 
166
  config = types.GenerateContentConfig(
 
155
  model_to_use = DEEPTHINK_MODEL_NAME if use_deepthink else STANDARD_MODEL_NAME
156
  logging.info(f"Modèle utilisé : {model_to_use}")
157
 
158
+
159
+ system_instruction = load_prompt
160
+
 
 
 
161
  user_prompt = f"Sujet: {french_prompt}\nType: {choix}\nStyle: {style}"
162
 
163
  config = types.GenerateContentConfig(