Skip to content

Commit e34135d

Browse files
authored
Merge pull request #8 from open-sciencelab/pypi
pip 安装 graphgen
2 parents e377a1e + 8093478 commit e34135d

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,26 @@ Experience it on the [OpenXLab Application Center](https://openxlab.org.cn/apps/
4242
python webui/app.py
4343
```
4444

45-
![ui](resources/images/interface.jpg)
45+
![ui](https://github.com/user-attachments/assets/3024e9bc-5d45-45f8-a4e6-b57bd2350d84)
4646

4747
### Run from PyPI
4848

49+
1. Install GraphGen
50+
```bash
51+
pip install graphg
52+
```
53+
54+
2. Run in CLI
55+
```bash
56+
SYNTHESIZER_MODEL=your_synthesizer_model_name \
57+
SYNTHESIZER_BASE_URL=your_base_url_for_synthesizer_model \
58+
SYNTHESIZER_API_KEY=your_api_key_for_synthesizer_model \
59+
TRAINEE_MODEL=your_trainee_model_name \
60+
TRAINEE_BASE_URL=your_base_url_for_trainee_model \
61+
TRAINEE_API_KEY=your_api_key_for_trainee_model \
62+
graphg --output_dir cache
63+
```
64+
4965
### Run from Source
5066

5167
1. Install dependencies

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def read_requirements():
3535

3636
if __name__ == '__main__':
3737
setup(
38-
name='graphgen',
38+
name='graphg',
3939
version=get_version(),
4040
url='https://github.com/open-sciencelab/GraphGen',
4141
description= # noqa E251

0 commit comments

Comments
 (0)