Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with the output #44

Open
sabina1122 opened this issue Mar 2, 2024 · 1 comment
Open

Issue with the output #44

sabina1122 opened this issue Mar 2, 2024 · 1 comment
Assignees

Comments

@sabina1122
Copy link

**Jon
Isssue with the code generate by the AI engine. There is hard coding, it is one of the bad practise in programming and should be discouraged by any religion, programmer or automated tools....

Here is an example of the code generated by Python AI engine.
This is first warning to avoid this type of output that the program is generating, going forward.
Please take care of this in future**


import matplotlib.pyplot as plt

Parcel attributes

length = 10
breadth = 5
depth = 3
weight = 2

Plotting the parcel at City X

plt.text(0, 0, 'City X\nParcel\nL:{} B:{} D:{} W:{}'.format(length, breadth, depth, weight), fontsize=12, ha='center')
plt.plot(0, 0, marker='s', markersize=20, label='City X')

Plotting the movement to City Y

plt.text(10, 0, 'City Y\nParcel\nL:{} B:{} D:{} W:{}'.format(length, breadth, depth, weight), fontsize=12, ha='center')
plt.plot(10, 0, marker='s', markersize=20, label='City Y')

plt.legend()
plt.axis('off')
plt.show()

@JonathanMagnan JonathanMagnan self-assigned this Mar 18, 2024
@JonathanMagnan
Copy link
Member

Hello @sabina1122 ,

Thank you for reporting, but we do not control what the AI generates. We can surely give some hints about what to create, but they must be global enough. Many examples require a few hard coding steps to make them simpler.

Surely, it should not be found in your program, but you can ask for it when creating your prompt.

Best Regards,

Jon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants