Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/shjwudp/huggingface-model-service


https://github.com/shjwudp/huggingface-model-service

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Huggingface-Model-Service

## GET ON

Install requirements.
```
git clone https://github.com/shjwudp/Huggingface-Model-Service && cd Huggingface-Model-Service
git submodule update --init --recursive
pip install -r requirements.txt
```

Load huggingface model, start HTTP restful service.
```
python generate-server.py --huggingface_model bigscience/bloom-560m --port YOUR_GENERATE_SERVER_PORT
```

Run streamlit server.
```
streamlit run streamlit-server.py -- --backend http://localhost:YOUR_GENERATE_SERVER_PORT/generate
```

View your Streamlit app in your browser.
![image](https://user-images.githubusercontent.com/11439912/195617248-6106e280-daf7-4fe8-bf6b-25ab11003f10.png)