Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def extract_text_from_json(text):
|
|
16 |
return text
|
17 |
return text
|
18 |
|
19 |
-
#
|
20 |
def check_spacing_around_dollar(df):
|
21 |
errors = []
|
22 |
for i, row in df.iterrows():
|
@@ -28,7 +28,7 @@ def check_spacing_around_dollar(df):
|
|
28 |
errors.append(f"行 {i+1} 列 '{col}': '{text}'")
|
29 |
return errors
|
30 |
|
31 |
-
#
|
32 |
def check_spacing_between_dollars(df):
|
33 |
errors = []
|
34 |
for i, row in df.iterrows():
|
@@ -40,7 +40,7 @@ def check_spacing_between_dollars(df):
|
|
40 |
errors.append(f"行 {i+1} 列 '{col}': '{text}'")
|
41 |
return errors
|
42 |
|
43 |
-
#
|
44 |
def check_numbers_surrounded_by_dollar(df):
|
45 |
errors = []
|
46 |
for i, row in df.iterrows():
|
|
|
16 |
return text
|
17 |
return text
|
18 |
|
19 |
+
# 檢查 $ 符號前後是否有空格
|
20 |
def check_spacing_around_dollar(df):
|
21 |
errors = []
|
22 |
for i, row in df.iterrows():
|
|
|
28 |
errors.append(f"行 {i+1} 列 '{col}': '{text}'")
|
29 |
return errors
|
30 |
|
31 |
+
# 檢查 $ 符號之間是否有空格
|
32 |
def check_spacing_between_dollars(df):
|
33 |
errors = []
|
34 |
for i, row in df.iterrows():
|
|
|
40 |
errors.append(f"行 {i+1} 列 '{col}': '{text}'")
|
41 |
return errors
|
42 |
|
43 |
+
# 檢查數字前後是否有 $ 符號
|
44 |
def check_numbers_surrounded_by_dollar(df):
|
45 |
errors = []
|
46 |
for i, row in df.iterrows():
|