kaicheng commited on
Commit
512d4cb
·
1 Parent(s): 7da79e7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -9
app.py CHANGED
@@ -84,19 +84,14 @@ def ocr(image):
84
  result = pd.DataFrame(ocr_result, columns=['Box ID', 'Text'])
85
 
86
  # save version1
87
- file_path1 = 'output_orignal.xlsx'
88
- result.to_excel(file_path1, index=False)
89
 
90
  new_result = modifier(result)
91
- file_path2 = 'output.xlsx'
92
- new_result.to_excel(file_path2, index=False)
93
  return out_img, new_result
94
 
95
- # # save version2
96
- # original_list = list(result['Text'])
97
- # new_list = []
98
-
99
-
100
 
101
 
102
  title = "图片识别文字"
 
84
  result = pd.DataFrame(ocr_result, columns=['Box ID', 'Text'])
85
 
86
  # save version1
87
+ # file_path1 = 'output_orignal.xlsx'
88
+ # result.to_excel(file_path1, index=False)
89
 
90
  new_result = modifier(result)
91
+ # file_path2 = 'output.xlsx'
92
+ # new_result.to_excel(file_path2, index=False)
93
  return out_img, new_result
94
 
 
 
 
 
 
95
 
96
 
97
  title = "图片识别文字"