File size: 674 Bytes
3f4a2cc
7d76671
a25386a
3f4a2cc
a25386a
573ab00
 
 
3f4a2cc
7d76671
3f4a2cc
c9d7b4f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
title: textgames
app_file: play_with_hf.py
sdk: gradio
sdk_version: 5.17.1
python_version: 3.11.8

hf_oauth: true
---
# TextGames

## Play on Hosted Servers

- HuggingFace Space

    https://huggingface.co./spaces/fhudi/textgames
    (login required)

## Play on localhost

- Setup
    ```
    ❱❱❱ pip install -r requirements.txt
    ```

- Play (Terminal)
    ```
    ❱❱❱ python play.py
    ```

- Play (Web UI)
    ```
    ❱❱❱ pip install gradio
    ❱❱❱ GRADIO_SERVER_PORT=1080  python play_gradio.py
    ```
    Open `localhost:1080` to access.

---

## Extras

- Optional Environment Varibles
    ```
    TEXTGAMES_SHOW_HIDDEN_LEVEL=1
    ```