Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shjwudp/huggingface-model-service
https://github.com/shjwudp/huggingface-model-service
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/shjwudp/huggingface-model-service
- Owner: shjwudp
- License: mit
- Created: 2022-10-13T03:07:34.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-03T13:09:37.000Z (about 2 years ago)
- Last Synced: 2024-11-19T01:54:03.899Z (about 2 months ago)
- Language: Python
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)