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

Small tweaks to Gradio demo #93

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

freddyaboulton
Copy link
Contributor

Some minor tweaks and suggestions for the gradio demo:

  • The content of a gradio chat message cannot be None. I was running into errors when the code agent was setting the llm_output was None.
  • Wrapping the observations in "```" blocks would not display the observation as markdown. By removing this, we can display the output as markdown which makes links interactive and respects the LLM format.
    For example,
Screenshot 2025-01-06 at 5 34 47 PM

vs

Screenshot 2025-01-06 at 6 01 01 PM

Copy link
Collaborator

@aymeric-roucher aymeric-roucher left a comment

Choose a reason for hiding this comment

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

This is a nice change, thank you @freddyaboulton!

@aymeric-roucher aymeric-roucher merged commit 7f3a88c into huggingface:main Jan 7, 2025
0 of 3 checks passed
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