Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/notyusheng/huggingface-tutorial

A collection of Python scripts using Hugging Face Transformers for various tasks
https://github.com/notyusheng/huggingface-tutorial

huggingface-transformers

Last synced: 20 days ago
JSON representation

A collection of Python scripts using Hugging Face Transformers for various tasks

Awesome Lists containing this project

README

        

# Hugging Face Transformers Tutorials

## Linux Docker Installation

```
apt-get update
apt install docker.io
```

## Usage

1. Clone this repository and navigate to LLaVA folder
```
git clone https://github.com/NotYuSheng/HuggingFace-Tutorial.git
cd HuggingFace-Tutorial
```

2. Build the Docker Image:
```
docker build -t hf-tutorial .
```

3. Run image as container
```
docker run -i -t hf-tutorial /bin/bash
```

## Table of content

| Index | Script(s) | Description |
| :--: | --- | --- |
| 1 | classifier.py | Sentiment-analysis to analyze and classify sentence as POSITIVE or NEGATIVE |
| 2 | speech-recognizer.py | Extract text from speech |
| 3 | classifier-multilingual.py | Sentiment-analysis to analyze and classify sentence as POSITIVE or NEGATIVE for six languages (English, Dutch, German, French, Spanish, and Italian) |
| 4 | visual-question.py | Image and text input, text response (Simple) |
| 5 | document_answering.py | Image document analysis |