File size: 1,706 Bytes
f11cb19
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9ccff4d
f11cb19
 
 
 
9ccff4d
f11cb19
9ccff4d
 
6c5f86a
 
9ccff4d
 
f11cb19
9ccff4d
f11cb19
9ccff4d
f11cb19
 
9ccff4d
 
 
 
 
f11cb19
 
 
 
 
 
 
 
 
9ccff4d
f11cb19
 
9ccff4d
f11cb19
 
9ccff4d
f11cb19
 
 
 
9ccff4d
f11cb19
9ccff4d
f11cb19
 
 
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---
title: ambhtmx.plotly
emoji: πŸƒ
colorFrom: pink
colorTo: pink
sdk: docker
pinned: false
---

<!-- badges: start -->

[![Lifecycle:
experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)

<!-- badges: end -->

**THIS IS A WORK IN PROGRESS, DO NOT USE**

See the demo here: 

* Direct URL to the deployed app: https://jrosell-ambhtmx-plotly.hf.space/
* Space URL: https://huggingface.co/spaces/jrosell/ambhtmx.plotly

Or test it locally:

```
git clone [email protected]:jrosell/ambhtmx.plotly.git
cd ambhtmx.plotly
echo GITHUB_PAT="Your token from github" >> .Renviron
bash docker_run.sh
```

If you want, you can remove docker containers and images:
```
bash docker_rm.sh
```

## How to use Github and Hugging Face Spaces for my project

When you pushing a repository to a Hugging Face Spaces with the option to deploy Dockerfile and include a Dockerfile, Hugging Face will start building and running your app in the Space.

Customize this example, to enable Hugging Face Spaces as additional remote:

```
git init
git add -A
git status
git commit -m "My changes"
git remote add origin [email protected]:jrosell/ambhtmx.plotly.git
git remote add gh [email protected]:jrosell/ambhtmx.plotly.git
git remote add hf [email protected]:spaces/jrosell/ambhtmx.plotly
git remote -v
```

Then, to depoly to Hugging Face Spaces run:

```
bash deploy_hf.sh
```

## Troubleshooting

Kown issues:

* Only updates when refreshing the whole page. WIP should rerender on innerHTML replace.

Check the [known issues](https://github.com/jrosell/ambhtmx/issues), and if you have another issue? Please, [let me know](https://github.com/jrosell/ambhtmx/issues).