This package makes it super simple to do exploratory data analysis and develop high-quality Panel data apps ...
Project description
🤗 Transformers Agent UI
THIS PROJECT IS CURRENTLY A PROOF OF CONCEPT. DON'T EXPECT EVERYTHING TO WORK! CHECK OUT THE TODO LIST FOR MORE INFO.
We want to
- Make it easy to use the Hugging Face Transformers Agent.
We provide
- the
TransformersAgentUI
component which can be used in the notebook as a web app - a deployment of the web app on Hugging Face Spaces
You can install and use the package as simple as.
pip install transformers-agent-ui
In a notebook just run
import panel as pn
from transformers_agent_ui import TransformersAgentUI
pn.extension("terminal", "notifications", notifications=True, design="bootstrap")
TransformersAgentUI()
To serve as a web app create the file app.py
import panel as pn
from transformers_agent_ui import TransformersAgentUI
if pn.state.served:
pn.extension("terminal", "notifications", notifications=True, design="bootstrap")
TransformersAgentUI().servable()
and run
BOKEH_RESOURCES=cdn panel serve app.py
In order for you to run the inference you will have to provide tokens. Preferably via the environment variables
HUGGING_FACE_TOKEN
OPEN_AI_TOKEN
Alternatively you can provide them on the Settings tab in the app.
🚀 Get started in under a minute
Install transformers-agent-ui
including the examples
dependencies.
pip install transformers-agent-ui[examples]
Explore the sample apps
pn hello transformers-agent-ui
You can now find the reference and gallery notebooks in the examples/awesome-panel/transformers-agent-ui
folder. Check them out by running jupyter lab
.
📒 Explore the examples online
Click one of the buttons
⭐ Support
Please support Panel and awesome-panel by giving the projects a star on Github:
Thanks
❤️ Contribute
If you are looking to contribute to this project you can find ideas in the issue tracker. To get started check out the DEVELOPER_GUIDE.
I would love to support and receive your contributions. Thanks.
Monitor
Todo List
- Implement TokenManager
- Redirect log to Terminal AND to stdout for easier debugging
- Save every run - also when cache is hit
- Add three examples to make it easy to get started
- Add notification if no token is available
- Deploy to Pypi
- Deploy to Hugging Face
- Support dynamic arguments (text, image etc) to run function
- Multi user support
- Restrict logs to user session
- Restrict store to user session
- Don't save asset if from cache. Instead reuse.
- Save run prints to logs
- Support
remote
parameter setting - Support
return_code
parameter setting - Run inference async to make app more performant if possible
- Make the Cache/ Store useful by providing an interface
- Add specific support for reading and writing more types. Currently most things are pickled.
- Test it on lots of examples
- Build a sample store and collect data on runs
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for transformers-agent-ui-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c8a90683206e540176bbe9fbe3f6177ccaec96a5a79b069f1a8b45eb6249baa |
|
MD5 | 76ac57657f8ce15f35cfe626c2978f16 |
|
BLAKE2b-256 | e67fbdb89d89a7f1f9ca1e4d99c367f32207a72a2e3b789e237b2dd50b1e1524 |
Hashes for transformers_agent_ui-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97efba28126dd2a96db41aa27d5d67dec550fb9ef93fb7b1fc3f3073e271a8ef |
|
MD5 | 30a9d2e025bf7f249510c7bb70bd445d |
|
BLAKE2b-256 | a71edd7fdfdf83c1bd8396671cb457769e3686c2c98ad26e111e0dd66cbd2462 |