justb0dy commited on
Commit
98a8f3c
1 Parent(s): cdc4636

Update app.py

Browse files

the argument `shouldConvert` in function `process_image` now has default value `False`.
The default value is required because at the line 91 the function is calling without second argument.

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ from PIL import Image
14
  YOUR_API_TOKEN = os.getenv('YOUR_API_TOKEN')
15
  dashscope.api_key = YOUR_API_TOKEN
16
  math_messages = []
17
- def process_image(image, shouldConvert):
18
  # 获取上传文件的目录
19
  global math_messages
20
  math_messages = [] # reset when upload image
 
14
  YOUR_API_TOKEN = os.getenv('YOUR_API_TOKEN')
15
  dashscope.api_key = YOUR_API_TOKEN
16
  math_messages = []
17
+ def process_image(image, shouldConvert=False):
18
  # 获取上传文件的目录
19
  global math_messages
20
  math_messages = [] # reset when upload image