XMWAI 0.1.0__py3-none-any.whl → 0.1.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of XMWAI might be problematic. Click here for more details.
- XMWAI/core.py +4 -2
- {xmwai-0.1.0.dist-info → xmwai-0.1.1.dist-info}/METADATA +1 -1
- xmwai-0.1.1.dist-info/RECORD +8 -0
- xmwai-0.1.0.dist-info/RECORD +0 -8
- {xmwai-0.1.0.dist-info → xmwai-0.1.1.dist-info}/LICENSE.txt +0 -0
- {xmwai-0.1.0.dist-info → xmwai-0.1.1.dist-info}/WHEEL +0 -0
- {xmwai-0.1.0.dist-info → xmwai-0.1.1.dist-info}/top_level.txt +0 -0
XMWAI/core.py
CHANGED
|
@@ -61,9 +61,10 @@ def photo(content, style, size, key=""):
|
|
|
61
61
|
if key == "":
|
|
62
62
|
print("没有秘钥!请提供秘钥!")
|
|
63
63
|
return "没有秘钥!请提供秘钥!"
|
|
64
|
-
elif key != "
|
|
64
|
+
elif key != "CaJQ":
|
|
65
65
|
print("秘钥错误!请重新输入!")
|
|
66
66
|
return "秘钥错误!请重新输入!"
|
|
67
|
+
key = "image"
|
|
67
68
|
url = "https://gateway.xiaomawang.com/pythonUILibApi/api/text2" + key
|
|
68
69
|
|
|
69
70
|
# 请求的头部
|
|
@@ -180,9 +181,10 @@ def poem(title, key=""):
|
|
|
180
181
|
if key == "":
|
|
181
182
|
print("没有秘钥!请提供秘钥!")
|
|
182
183
|
return "没有秘钥!请提供秘钥!"
|
|
183
|
-
elif key != "
|
|
184
|
+
elif key != "CaJQ":
|
|
184
185
|
print("秘钥错误!请重新输入!")
|
|
185
186
|
return "秘钥错误!请重新输入!"
|
|
187
|
+
key = "ZZC"
|
|
186
188
|
access_token = get_access_token(key)
|
|
187
189
|
if access_token:
|
|
188
190
|
url = f"https://aip.baidubce.com/rpc/2.0/nlp/v1/poem?access_token={access_token}"
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
XMWAI/__init__.py,sha256=zvm0-Odgjqsbf5O6HU7nuzrFxUVh-iDZyETj_u9jBgI,285
|
|
2
|
+
XMWAI/core.py,sha256=C4pntTFPOpMuFhJCEVoAlrJEizNSHOWZcB1dwCdkl6w,7396
|
|
3
|
+
XMWAI/magic_core.py,sha256=XU7K4Ta7EAvwBLk20_Hlu18E6Kz8B0HxUBq0YsawikE,3441
|
|
4
|
+
xmwai-0.1.1.dist-info/LICENSE.txt,sha256=bcaIQMrIhdQ3O-PoZlexjmW6h-wLGvHxh5Oksl4ohtc,1066
|
|
5
|
+
xmwai-0.1.1.dist-info/METADATA,sha256=lje7RSh4dc7z4rhJyct_mB_NlK_92LIN832_HS8QyrI,1010
|
|
6
|
+
xmwai-0.1.1.dist-info/WHEEL,sha256=beeZ86-EfXScwlR_HKu4SllMC9wUEj_8Z_4FJ3egI2w,91
|
|
7
|
+
xmwai-0.1.1.dist-info/top_level.txt,sha256=yvGcDI-sggK5jqd9wz0saipZvk3oIE3hNGHlqUjxf0c,6
|
|
8
|
+
xmwai-0.1.1.dist-info/RECORD,,
|
xmwai-0.1.0.dist-info/RECORD
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
XMWAI/__init__.py,sha256=zvm0-Odgjqsbf5O6HU7nuzrFxUVh-iDZyETj_u9jBgI,285
|
|
2
|
-
XMWAI/core.py,sha256=FLNokTW9CG94p44ja7FhILKs7KaPIy6oRmt-M8pbhqA,7360
|
|
3
|
-
XMWAI/magic_core.py,sha256=XU7K4Ta7EAvwBLk20_Hlu18E6Kz8B0HxUBq0YsawikE,3441
|
|
4
|
-
xmwai-0.1.0.dist-info/LICENSE.txt,sha256=bcaIQMrIhdQ3O-PoZlexjmW6h-wLGvHxh5Oksl4ohtc,1066
|
|
5
|
-
xmwai-0.1.0.dist-info/METADATA,sha256=8vb5ui-PQHXi1-PIqyBvAbg533x9Dl5ag8CXPF0TarI,1010
|
|
6
|
-
xmwai-0.1.0.dist-info/WHEEL,sha256=beeZ86-EfXScwlR_HKu4SllMC9wUEj_8Z_4FJ3egI2w,91
|
|
7
|
-
xmwai-0.1.0.dist-info/top_level.txt,sha256=yvGcDI-sggK5jqd9wz0saipZvk3oIE3hNGHlqUjxf0c,6
|
|
8
|
-
xmwai-0.1.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|