Spaces:
Sleeping
Sleeping
File size: 695 Bytes
82c419b 2d902f4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
---
title: Document2slide Demo
emoji: 🚀
colorFrom: red
colorTo: red
sdk: docker
pinned: false
---
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
# docker integration of existing code
build docker
```sh
docker build --tag doc2slide -f Dockerfile .
```
run in interactive mode and use gpu
```sh
docker run --name test --gpus all -p 7080:8070 -p 7081:8071 -p 7860:7860 --rm -it doc2slide bash
```
current version of grobid 0.7.3 have python 3.8.10 and openjdk 17. To run as a service
```sh
docker run -d --name test --gpus all -p 7080:8070 -p 7081:8071 -p 7860:7860 --rm doc2slide
```
https://shinylive.io/py/examples gives a lot of examples
|