youngtsai commited on
Commit
8b6845f
1 Parent(s): 0da86f5

user_content = f"請根據 {df_string},大概描述這張表的欄位敘述、資料樣態與資料分析,告訴老師這張表的意義,以及可能的結論與對應方式"

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -30,7 +30,7 @@ def process_file(file):
30
  def generate_df_summarise(df_string):
31
  # 使用 OpenAI 生成基于上传数据的问题
32
  sys_content = "你是一個資料分析師,服務對象為老師,請精讀資料,使用 zh-TW"
33
- user_content = f"請根據 {df_string},大概描述這張表的欄位敘述,以及內容的資料樣態與解析"
34
  messages = [
35
  {"role": "system", "content": sys_content},
36
  {"role": "user", "content": user_content}
 
30
  def generate_df_summarise(df_string):
31
  # 使用 OpenAI 生成基于上传数据的问题
32
  sys_content = "你是一個資料分析師,服務對象為老師,請精讀資料,使用 zh-TW"
33
+ user_content = f"請根據 {df_string},大概描述這張表的欄位敘述、資料樣態與資料分析,告訴老師這張表的意義,以及可能的結論與對應方式"
34
  messages = [
35
  {"role": "system", "content": sys_content},
36
  {"role": "user", "content": user_content}