Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ERNIE-ViLG models into Pipelines #3512

Merged
merged 7 commits into from
Oct 21, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add more comments
  • Loading branch information
w5688414 committed Oct 19, 2022
commit 5b8d7dd81d18c23200dceb0321d0fc49d478b746
6 changes: 6 additions & 0 deletions pipelines/examples/text_to_image/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ sh examples/text_to_image/run_text_to_image.sh
```

#### 3.3.2 启动 WebUI

WebUI使用了[gradio前端](https://gradio.app/),首先需要安装gradio,运行命令如下:
```
pip install gradio
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

后续看看gradio要不要放到requirments里面

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果以后都是基于Gradio开发,我觉得可以

```
然后使用如下的命令启动:
```bash
# 配置模型服务地址
export API_ENDPOINT=http://127.0.0.1:8891
Expand Down
2 changes: 1 addition & 1 deletion pipelines/examples/text_to_image/text_to_image_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
# yapf: disable
parser = argparse.ArgumentParser()
parser.add_argument("--api_key", default=None, type=str, help="The API Key.")
parser.add_argument("--secret_key", default=None, type=str, help="The API Key.")
parser.add_argument("--secret_key", default=None, type=str, help="The secret key.")
parser.add_argument("--prompt_text", default='宁静的小镇', type=str, help="The prompt_text.")
parser.add_argument("--style", default='探索无限', type=str, help="The style text.")
parser.add_argument("--size", default='1024*1024',
Expand Down