Giter VIP home page Giter VIP logo

huggingface-chat's Introduction

A Streamlit web app for interacting with Hugging Face's text generation models.

This project is a simple web application that allows users to load pre-trained models from Hugging Face's model hub and generate text based on a user-provided prompt. It's built using Streamlit and the transformers library.

VS Code Ruff

Features

  • Load Hugging Face models dynamically by specifying the model name.
  • Generate text using the loaded model with a custom prompt.
  • Keep a history of loaded models for quick access.

Installation

Make sure you have Python 3.6 or later installed. You can then install the dependencies with pip:

  1. python -m venv .venv

  2. Windows: .venv\Scripts\activate
    Linux: source .venv/bin/activate

  3. pip install -r requirements

Usage

To run the app, navigate to the directory containing index.py and run:

streamlit run index.py or python start.py

The Streamlit web interface should open in your default web browser, where you can interact with the model.

Contributing

Contributions are welcome! If you have a suggestion or an issue, please open an issue on the repository to discuss it.

License

MIT © simwai

huggingface-chat's People

Contributors

simwai avatar

Stargazers

 avatar

Watchers

 avatar Kostas Georgiou avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.