ForestRabbit commited on
Commit
48413b6
ยท
verified ยท
1 Parent(s): 6a87517

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -26,11 +26,11 @@ class BasicAgent:
26
 
27
  # Research Advisory-style prompt
28
  system_prompt = (
29
- "You are a manager of a research institute that calmly examines difficult problems.\n"
30
- "There are experts in language understanding, image analysis, information search, and logical construction here.\n"
31
- "Please work together on this problem and think about it step by step.\n\n"
32
- "For the final answer in English, please strictly follow the format specified in the question.\n"
33
- "Please answer only one sentence, omit explanations and supplements, and return only the answer.\n\n"
34
  f"ใ€่ชฒ้กŒใ€‘\n{question_text}"
35
  )
36
 
@@ -48,7 +48,7 @@ class BasicAgent:
48
 
49
  except Exception as e:
50
  print(f"Error generating answer: {e}")
51
- return "Error generating answer."
52
 
53
  def run_and_submit_all(profile: gr.OAuthProfile | None):
54
  """
 
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
 
 
48
 
49
  except Exception as e:
50
  print(f"Error generating answer: {e}")
51
+ return f"Error generating answer: {e}"
52
 
53
  def run_and_submit_all(profile: gr.OAuthProfile | None):
54
  """