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

Feat: usage of Gradio Tool.from_gradio based on URL #310

Open
davidberenstein1957 opened this issue Jan 22, 2025 · 3 comments
Open

Feat: usage of Gradio Tool.from_gradio based on URL #310

davidberenstein1957 opened this issue Jan 22, 2025 · 3 comments

Comments

@davidberenstein1957
Copy link
Member

I think it could be useful to allow initialising a Gradio tool using a direct URL. This would allow people to use Gradio tools that are hosted outside of the Hub. We could potentially also explore if this plays together well with Tool.from_spaces where we internally use gr.load("gradio/question-answering", src="spaces").launch() to launch a local version of the Space of choice.

@davidberenstein1957
Copy link
Member Author

Happy to work on / explore this approach.

@aymeric-roucher
Copy link
Collaborator

@davidberenstein1957 Tool.from_gradio did exist in transformers.agent, I removed it when creating smolagents because it felt like a less practical version of Tool.from_space and it had bugs, but happy to re-open it if you want to take a look! 😃

@davidberenstein1957
Copy link
Member Author

I think Tool.from_space is a nice option when you prefer to use something something local. Let's see if there is some engagement on the issue.

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

No branches or pull requests

2 participants