Spaces:
Running
Running
df_string = df_string.replace("@XX@", "|")
Browse files
app.py
CHANGED
@@ -15,6 +15,8 @@ def process_file(file):
|
|
15 |
df = pd.read_excel(file)
|
16 |
|
17 |
df_string = df.to_string()
|
|
|
|
|
18 |
|
19 |
# 根据上传的文件内容生成问题
|
20 |
questions = generate_questions(df_string)
|
|
|
15 |
df = pd.read_excel(file)
|
16 |
|
17 |
df_string = df.to_string()
|
18 |
+
# 宜蘭:移除@XX@符号 to |
|
19 |
+
df_string = df_string.replace("@XX@", "|")
|
20 |
|
21 |
# 根据上传的文件内容生成问题
|
22 |
questions = generate_questions(df_string)
|