You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I passed this prompt: "Plot sin(x) from 0 to 1. Then save the plot as my_plot.png. Then give my_plot.png for the final answer so that the image displays." I used a code agent with GradioUI code:
That worked! Looks like it was just a matter of having those extra authorized imports. Thank you for this. Looks like not a bug, unless displaying plots is expected to be supported by default, in which case perhaps these imports should be authorized by default.
The code in gradio_ui.py code suggests that if a png filename is passed as the final answer it will display the image.
I passed this prompt: "Plot sin(x) from 0 to 1. Then save the plot as my_plot.png. Then give my_plot.png for the final answer so that the image displays." I used a code agent with GradioUI code:
See the screenshot below. The agent submitted my_plot.png as the final answer. But as the screenshot shows it did not display the png. Thanks.
The text was updated successfully, but these errors were encountered: