unausagi commited on
Commit
755313f
·
verified ·
1 Parent(s): 6127161

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -49,15 +49,16 @@ def generate_monthly_report(weekly_reports_files, last_month_report_file, llm_gp
49
  prompt += f"{report}\n---\n"
50
 
51
  prompt += """
52
- 你是一個文件總結的專業秘書,
53
- 我提供了多份週報,以及上次使用的月報。請根據這些資料進行以下任務:
54
 
55
- 1. 依照週報的時間順序,整理各專案本月份的整體進度與內容(像故事一樣描述本月發生的事情)。
56
- 2. 依照月報格式,針對每個專案整理本月已完成的工作內容。
57
- 3. 針對每個專案寫出下個月的預計工作計畫,用月報的「下月預計工作」格式來呈現。
58
- 4. 在報告的最後,再統整列出一次每個專案下個月要做的事項(像行動項目)。
59
 
60
- 請用正式、專業的語氣來撰寫,並依照月報的格式來輸出。資料來源是我附上的週報與月報。
 
 
61
  """
62
  try:
63
  response = llm_gpt4o.invoke([("system", "You are a professional assistant."), ("human", prompt)])
 
49
  prompt += f"{report}\n---\n"
50
 
51
  prompt += """
52
+ I will provide the weekly reports for the current month and the monthly report from the previous month. Based on these documents, please:
 
53
 
54
+ 1. Describe the overall progress and updates of each project for the current month, organized chronologically like a narrative.
55
+ 2. Summarize the completed work for each project in the same format as the previous month’s report.
56
+ 3. Write the work plan for next month for each project, following the "next month plan" format used in the previous monthly report.
57
+ 4. At the end of the report, compile a separate summary list that clearly states the action items for next month for each project.
58
 
59
+ ⚠️ Please write the entire response in **Traditional Chinese**, using a formal and professional tone, and strictly follow the format of the previous month’s monthly report.
60
+
61
+ The source materials are the "current month weekly reports" and the "previous month monthly report" that I provided.
62
  """
63
  try:
64
  response = llm_gpt4o.invoke([("system", "You are a professional assistant."), ("human", prompt)])