ForestRabbit commited on
Commit
676079c
ยท
verified ยท
1 Parent(s): 48413b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -15,7 +15,7 @@ DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
15
  class BasicAgent:
16
  def __init__(self):
17
  genai.configure(api_key=os.getenv("GEMINI_API_KEY"))
18
- self.model = genai.GenerativeModel("gemini-2.5-pro-exp-03-25")
19
  self.files_base_url = "https://agents-course-unit4-scoring.hf.space/files"
20
  print("Gemini-powered BasicAgent initialized.")
21
 
@@ -24,14 +24,14 @@ class BasicAgent:
24
  task_id = question_data.get("task_id", "")
25
  file_names = question_data.get("file_names", [])
26
 
27
- # Research Advisory-style prompt
28
  system_prompt = (
29
- "ใ‚ใชใŸใฏใ€้›ฃ่งฃใชๅ•้กŒใ‚’ๅ†ท้™ใซๆคœ่จŽใ™ใ‚‹็ ”็ฉถๆ‰€ใฎใ‚จใƒผใ‚ธใ‚งใƒณใƒˆใงใ™ใ€‚\n"
30
- "ใ“ใ“ใซใฏใ€่จ€่ชž็†่งฃใ€็”ปๅƒ่งฃๆžใ€ๆƒ…ๅ ฑๆคœ็ดขใ€่ซ–็†ๆง‹็ฏ‰ใฎๅฐ‚้–€ๅฎถใŒใ„ใพใ™ใ€‚\n"
31
- "ใ“ใฎๅ•้กŒใซๅ”ๅŠ›ใ—ใฆๅ–ใ‚Š็ต„ใฟใ€ๆฎต้šŽ็š„ใซ่€ƒใˆใฆใใ ใ•ใ„ใ€‚\n\n"
32
- "ๆœ€็ต‚็š„ใชๅ›ž็ญ”ใฏใ€่‹ฑ่ชžใงใ€ๅ•้กŒๆ–‡ใซๆŒ‡ๅฎšใ•ใ‚ŒใŸๅฝขๅผใซๅŽณๅฏ†ใซๅพ“ใฃใฆใใ ใ•ใ„ใ€‚\n"
33
- "ๅ›ž็ญ”ใฏ1ๆ–‡ใฎใฟใงใ€่ชฌๆ˜Žใ‚„่ฃœ่ถณใฏ็œใใ€็ญ”ใˆใ ใ‘ใ‚’่ฟ”ใ—ใฆใใ ใ•ใ„ใ€‚\n\n"
34
- f"ใ€่ชฒ้กŒใ€‘\n{question_text}"
35
  )
36
 
37
  try:
 
15
  class BasicAgent:
16
  def __init__(self):
17
  genai.configure(api_key=os.getenv("GEMINI_API_KEY"))
18
+ self.model = genai.GenerativeModel("gemini-1.5-pro")
19
  self.files_base_url = "https://agents-course-unit4-scoring.hf.space/files"
20
  print("Gemini-powered BasicAgent initialized.")
21
 
 
24
  task_id = question_data.get("task_id", "")
25
  file_names = question_data.get("file_names", [])
26
 
27
+ # Research Advisory-style prompt (English)
28
  system_prompt = (
29
+ "You are an agent working in a research laboratory specializing in solving complex problems.\n"
30
+ "Your team includes experts in language understanding, image analysis, information retrieval, and logical reasoning.\n"
31
+ "Work collaboratively and approach the problem step by step.\n\n"
32
+ "The final answer must be in English, strictly following the required format in the question.\n"
33
+ "Please return only the answer as a single sentence, with no explanation or additional information.\n\n"
34
+ f"[Problem]\n{question_text}"
35
  )
36
 
37
  try: