LilRg commited on
Commit
209e825
·
verified ·
1 Parent(s): 85e2256

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -8,7 +8,7 @@ from gradio import Request
8
  logging.basicConfig(level=logging.ERROR)
9
  logger = logging.getLogger(__name__)
10
 
11
- OPENROUTER_API_KEY = "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"
12
  YOUR_SITE_URL = "votre-site.com"
13
  YOUR_APP_NAME = "MonChatbot"
14
 
@@ -130,7 +130,7 @@ def call_api_for_response_analysis(question, response):
130
  "Content-Type": "application/json"
131
  },
132
  data=json.dumps({
133
- "model": "mistralai/pixtral-12b:free",
134
  "messages": messages
135
  })
136
  )
@@ -169,7 +169,7 @@ def call_api_for_skill_assessment(responses):
169
  "Content-Type": "application/json"
170
  },
171
  data=json.dumps({
172
- "model": "mistralai/pixtral-12b:free",
173
  "messages": messages
174
  })
175
  )
@@ -224,7 +224,7 @@ def compare_skills_ai(student_skills, enterprise_skills):
224
  "Content-Type": "application/json"
225
  },
226
  data=json.dumps({
227
- "model": "mistralai/pixtral-12b:free",
228
  "messages": messages
229
  })
230
  )
@@ -288,7 +288,8 @@ def add_to_compatibility_table(student_id, skill_assessment, enterprise_skills,
288
  "Nom": student_name,
289
  "EmailEtudiant": student_mail,
290
  "EmailEntreprise": emailEntreprise,
291
- "Nom_Recruteur_Entreprise": enterprise_name
 
292
  }
293
  }
294
 
@@ -347,7 +348,7 @@ def generate_follow_up_question(original_question, current_response, previous_re
347
  "Content-Type": "application/json"
348
  },
349
  data=json.dumps({
350
- "model": "mistralai/pixtral-12b:free",
351
  "messages": messages
352
  })
353
  )
 
8
  logging.basicConfig(level=logging.ERROR)
9
  logger = logging.getLogger(__name__)
10
 
11
+ OPENROUTER_API_KEY = "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"
12
  YOUR_SITE_URL = "votre-site.com"
13
  YOUR_APP_NAME = "MonChatbot"
14
 
 
130
  "Content-Type": "application/json"
131
  },
132
  data=json.dumps({
133
+ "model": "meta-llama/llama-3.2-90b-vision-instruct:free",
134
  "messages": messages
135
  })
136
  )
 
169
  "Content-Type": "application/json"
170
  },
171
  data=json.dumps({
172
+ "model": "meta-llama/llama-3.2-90b-vision-instruct:free",
173
  "messages": messages
174
  })
175
  )
 
224
  "Content-Type": "application/json"
225
  },
226
  data=json.dumps({
227
+ "model": "meta-llama/llama-3.2-90b-vision-instruct:free",
228
  "messages": messages
229
  })
230
  )
 
288
  "Nom": student_name,
289
  "EmailEtudiant": student_mail,
290
  "EmailEntreprise": emailEntreprise,
291
+ "Nom_Recruteur_Entreprise": enterprise_name,
292
+ "Postuler": "Non"
293
  }
294
  }
295
 
 
348
  "Content-Type": "application/json"
349
  },
350
  data=json.dumps({
351
+ "model": "model": "meta-llama/llama-3.2-90b-vision-instruct:free",
352
  "messages": messages
353
  })
354
  )