Skip to content

add hello_world#41

Merged
pymumu merged 1 commit intomodelbox-ai:mainfrom
EtronieDENG:main
Jan 10, 2022
Merged

add hello_world#41
pymumu merged 1 commit intomodelbox-ai:mainfrom
EtronieDENG:main

Conversation

@EtronieDENG
Copy link
Contributor

No description provided.


for buffer in in_data:
msg = json.loads(buffer.as_object().strip(chr(0))).get("msg")
out_buffer = modelbox.Buffer(self.get_bind_device(), msg.title())
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个写法太复杂了,看看怎么优化。

另外,这里可以写一个简单的业务,msg里面,加上一个时间戳。

headers=http_config.headerdata)

response = conn.getresponse().read().decode()
print(response)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这些代码放入到__main__方法里面去

@pymumu pymumu merged commit b9d647b into modelbox-ai:main Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants