> For the complete documentation index, see [llms.txt](https://services.rpcdot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://services.rpcdot.com/allora/worker-node/allora-huggingface-node-setup.md).

# Allora Huggingface Node Setup

#### Eski Dosyaları Silelim  :&#x20;

```
cd $HOME
```

```
cd allora-chain
```

```
cd basic-coin-prediction-node
```

```
docker compose down -v
docker container prune
```

#### Bundan Gerisini Yapabilmek için Ana Rehberde <https://services.rpcdot.com/allora/worker-node#faucet>  FAUCET KISMINA KADAR YAPMANIZ GEREKİYOR !!!!!!!!!!!!!!!

#### HuggingFace:&#x20;

```
cd $HOME
git clone https://github.com/allora-network/allora-huggingface-walkthrough
cd allora-huggingface-walkthrough
```

```
mkdir -p worker-data
chmod -R 777 worker-data
```

#### Nano İle Config'i Yapalım :&#x20;

```
nano config.json
```

#### Şimdi burada değişecekler eğer cüzdan ismi değiştirdi isen testkey olan kısmı cüzdan ismin ile değiştireceksin - "Ben Cüzdan Kelimeleri Olacak Tırnaklarda Kalacak" kısmınada cüzdan kelimelerin olacak - düzenleyip nano içerisine yapistir.

İsterseniz RPC Kısmına Polkachu RPC Kullabilirsiniz : <https://allora-testnet-rpc.polkachu.com/\\>
Yada Diğer RPC : <https://beta.multi-rpc.com/allora_testnet/>

```
{
    "wallet": {
        "addressKeyName": "testkey",
        "addressRestoreMnemonic": "Ben Cüzdan Kelimeleri Olacak Tırnaklarda Kalacak",
        "alloraHomeDir": "/root/.allorad",
        "gas": "1000000",
        "gasAdjustment": 1.0,
        "nodeRpc": "https://allora-rpc.testnet-1.testnet.allora.network/",
        "maxRetries": 10,
        "delay": 2,
        "submitTx": true
    },
    "worker": [
        {
            "topicId": 1,
            "inferenceEntrypointName": "api-worker-reputer",
            "loopSeconds": 1,
            "parameters": {
                "InferenceEndpoint": "http://inference:8000/inference/{Token}",
                "Token": "ETH"
            }
        },
        {
            "topicId": 2,
            "inferenceEntrypointName": "api-worker-reputer",
            "loopSeconds": 3,
            "parameters": {
                "InferenceEndpoint": "http://inference:8000/inference/{Token}",
                "Token": "ETH"
            }
        },
        {
            "topicId": 3,
            "inferenceEntrypointName": "api-worker-reputer",
            "loopSeconds": 5,
            "parameters": {
                "InferenceEndpoint": "http://inference:8000/inference/{Token}",
                "Token": "BTC"
            }
        },
        {
            "topicId": 4,
            "inferenceEntrypointName": "api-worker-reputer",
            "loopSeconds": 2,
            "parameters": {
                "InferenceEndpoint": "http://inference:8000/inference/{Token}",
                "Token": "BTC"
            }
        },
        {
            "topicId": 5,
            "inferenceEntrypointName": "api-worker-reputer",
            "loopSeconds": 4,
            "parameters": {
                "InferenceEndpoint": "http://inference:8000/inference/{Token}",
                "Token": "SOL"
            }
        },
        {
            "topicId": 6,
            "inferenceEntrypointName": "api-worker-reputer",
            "loopSeconds": 5,
            "parameters": {
                "InferenceEndpoint": "http://inference:8000/inference/{Token}",
                "Token": "SOL"
            }
        },
        {
            "topicId": 7,
            "inferenceEntrypointName": "api-worker-reputer",
            "loopSeconds": 2,
            "parameters": {
                "InferenceEndpoint": "http://inference:8000/inference/{Token}",
                "Token": "ETH"
            }
        },
        {
            "topicId": 8,
            "inferenceEntrypointName": "api-worker-reputer",
            "loopSeconds": 3,
            "parameters": {
                "InferenceEndpoint": "http://inference:8000/inference/{Token}",
                "Token": "BNB"
            }
        },
        {
            "topicId": 9,
            "inferenceEntrypointName": "api-worker-reputer",
            "loopSeconds": 5,
            "parameters": {
                "InferenceEndpoint": "http://inference:8000/inference/{Token}",
                "Token": "ARB"
            }
        }
        
    ]
}
```

#### CTRL X - CTRL Y enter yapıp kaydet.

### Create Coingecko API key

<https://www.coingecko.com/en/developers/dashboard>

```
nano app.py
```

<figure><img src="/files/01CCMeE4BeGLsIotzyc1" alt=""><figcaption></figcaption></figure>

#### Tırnaklar arasına yazılacak ardından CTRL X - CTRL Y - Enter&#x20;

#### Başlatalım :&#x20;

```
chmod +x init.config
./init.config
```

#### Containerler :&#x20;

```
docker compose up --build -d
```

#### Loglar :&#x20;

```
docker ps -a
```

#### Node'nin ID'sini alın

```
docker logs -f idyiburayayapistir
```
