Spaces:
Running
Running
Update app.py
Browse filesthe 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.
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
|