Skip to main content

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

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()

TransformerAgentUI in a notebook

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

TransformerAgentUI on a server

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

nbviewer Binder

⭐ 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.

Hacktober Fest.

Monitor

PyPI version Downloads Python Versions License Test Results

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

transformers-agent-ui-0.1.0.tar.gz (600.0 kB view hashes)

Uploaded Source

Built Distribution

transformers_agent_ui-0.1.0-py3-none-any.whl (598.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page