XMWAI 0.1.0__tar.gz → 0.1.1__tar.gz
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-0.1.0 → xmwai-0.1.1}/PKG-INFO +1 -1
- {xmwai-0.1.0 → xmwai-0.1.1}/XMWAI/core.py +4 -2
- {xmwai-0.1.0 → xmwai-0.1.1}/XMWAI.egg-info/PKG-INFO +1 -1
- {xmwai-0.1.0 → xmwai-0.1.1}/setup.py +1 -1
- {xmwai-0.1.0 → xmwai-0.1.1}/LICENSE.txt +0 -0
- {xmwai-0.1.0 → xmwai-0.1.1}/README.md +0 -0
- {xmwai-0.1.0 → xmwai-0.1.1}/XMWAI/__init__.py +0 -0
- {xmwai-0.1.0 → xmwai-0.1.1}/XMWAI/magic_core.py +0 -0
- {xmwai-0.1.0 → xmwai-0.1.1}/XMWAI.egg-info/SOURCES.txt +0 -0
- {xmwai-0.1.0 → xmwai-0.1.1}/XMWAI.egg-info/dependency_links.txt +0 -0
- {xmwai-0.1.0 → xmwai-0.1.1}/XMWAI.egg-info/requires.txt +0 -0
- {xmwai-0.1.0 → xmwai-0.1.1}/XMWAI.egg-info/top_level.txt +0 -0
- {xmwai-0.1.0 → xmwai-0.1.1}/setup.cfg +0 -0
|
@@ -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}"
|
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name="XMWAI", # 包名(pip install XMWAI)
|
|
5
|
-
version="0.1.
|
|
5
|
+
version="0.1.1", # 初始版本号
|
|
6
6
|
author="pydevelopment", # 作者
|
|
7
7
|
author_email="hekai@xiaoma.cn", # 邮箱
|
|
8
8
|
description="Small code King AI related library", # 简短描述
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|