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

Added gradio interface #25

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

buntynitin
Copy link

@buntynitin buntynitin commented Dec 26, 2024

Added a gradio ui on top of existing flow.
User can now run it either by cli or by running the gradio server.

@CheckerFlow
Copy link

Checked out the feature branch and tried to run the Gradio UI.
Works as expected:

image

Should be good for merging with main branch.

@virattt
Copy link
Owner

virattt commented Feb 1, 2025

I love this idea.

Can we add support for:

  • multiple models
  • multiple agents

@buntynitin
Copy link
Author

buntynitin commented Feb 2, 2025

Implemented Features:

  1. Workflow graph is generated dynamically and displayed in the UI without being saved.
  2. All agents are selected by default.
  3. Data validation errors are now shown as toast notifications, while other errors are displayed in the output.
  4. HTML-based results have been introduced, providing more customization options.
  5. No changes were made to the existing flow; a separate Gradio file was used for this implementation.

Future Scope:

  1. API key management via the UI.

Note:

  1. Gradio requires python versions >= 3.10. So bumped the version from 3.9 to 3.10 causing more changes in poetry.lock
  2. The ordering of agents in the results is currently incorrect due to issues with the existing sorting implementation, which is also affecting the terminal output. I decided not to include the fix in this PR.
Screenshot 2025-02-02 at 7 31 34 AM

@unfoundbox unfoundbox mentioned this pull request Mar 7, 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.

3 participants