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

Fix issue with random number tool in smol_tools #45

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

lionelchg
Copy link
Contributor

Currently since the get_random_number_between function in agent.py returns an integer, when prompting the agent to output a random number the following error is thrown:

python demo_tkinter.py
[...] # Press F10
======== New task ========
random 1-10
error PIL must be installed in order to handle images.

The PR convers to string the random integer and fixes the above error

@anton-l anton-l requested a review from andimarafioti January 7, 2025 12:56
@andimarafioti andimarafioti merged commit a60523b into huggingface:main Jan 24, 2025
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.

2 participants