breezedeus commited on
Commit
74f907d
1 Parent(s): a0c82a3

change paths of the font and bg image

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -13,7 +13,7 @@ from antiocr.consts import RESOURCE_PATH
13
  logger = set_logger()
14
  st.set_page_config(layout="wide")
15
 
16
- FONT_FP = '/System/Library/Fonts/PingFang.ttc'
17
 
18
 
19
  @st.cache(allow_output_mutation=True)
@@ -67,7 +67,7 @@ def main():
67
  bg_image = None
68
  else:
69
  bg_gen_config = None
70
- bg_image = Image.open(RESOURCE_PATH / 'bg.jpeg')
71
  bg_image = bg_image.filter(ImageFilter.MaxFilter(3))
72
 
73
  title = '让文字自由传播:<a href="https://github.com/breezedeus/antiOCR">antiOCR</a>'
 
13
  logger = set_logger()
14
  st.set_page_config(layout="wide")
15
 
16
+ FONT_FP = './resources/simfang.ttf'
17
 
18
 
19
  @st.cache(allow_output_mutation=True)
 
67
  bg_image = None
68
  else:
69
  bg_gen_config = None
70
+ bg_image = Image.open('./resources/bg.jpeg')
71
  bg_image = bg_image.filter(ImageFilter.MaxFilter(3))
72
 
73
  title = '让文字自由传播:<a href="https://github.com/breezedeus/antiOCR">antiOCR</a>'