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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: XMWAI
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Small code King AI related library
5
5
  Home-page: https://github.com/Tonykai88/XMWAI.git
6
6
  Author: pydevelopment
@@ -61,9 +61,10 @@ def photo(content, style, size, key=""):
61
61
  if key == "":
62
62
  print("没有秘钥!请提供秘钥!")
63
63
  return "没有秘钥!请提供秘钥!"
64
- elif key != "image":
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 != "ZZC":
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}"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: XMWAI
3
- Version: 0.1.0
3
+ Version: 0.1.1
4
4
  Summary: Small code King AI related library
5
5
  Home-page: https://github.com/Tonykai88/XMWAI.git
6
6
  Author: pydevelopment
@@ -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.0", # 初始版本号
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