Skip to content

Commit

Permalink
unify HF README (#164)
Browse files Browse the repository at this point in the history
Co-authored-by: Yi-01-ai <[email protected]>
  • Loading branch information
findmyway and Yi-01-ai authored Nov 23, 2023
1 parent 2d78f1a commit 90dffd5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 24 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/sync_files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ jobs:
- run: GIT_LFS_SKIP_SMUDGE=1 git clone ${{ env.REPO }}
- if: needs.detect-changes.outputs.is_readme_changed == 'true' && matrix.platform == 'huggingface'
run: |
cat README/huggingface_widget_${{ contains(matrix.repo, 'Chat') && 'chat' || 'base'}}.md > ${{ matrix.repo }}/README.md
cat README/huggingface_header.md >> ${{ matrix.repo }}/README.md
cat README/huggingface_header.md > ${{ matrix.repo }}/README.md
csplit README.md '/## Introduction/'
cat xx01 >> ${{ matrix.repo }}/README.md
- if: needs.detect-changes.outputs.is_readme_changed == 'true' && matrix.platform != 'huggingface'
Expand Down
15 changes: 15 additions & 0 deletions README/huggingface_header.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
---
license: other
license_name: yi-license
license_link: LICENSE
widget:
- example_title: "Yi-34B-Chat"
text: "hi"
output:
text: " Hello! How can I assist you today?"
- example_title: "Yi-34B"
text: "There's a place where time stands still. A place of breath taking wonder, but also"
output:
text: " an eerie sense that something is just not right…\nBetween the two worlds lies The Forgotten Kingdom - home to creatures long since thought extinct and ancient magic so strong it defies belief! Only here can you find what has been lost for centuries: An Elixir Of Life which will restore youth and vitality if only those who seek its power are brave enough to face up against all manner of dangers lurking in this mysterious land! But beware; some say there may even exist powerful entities beyond our comprehension whose intentions towards humanity remain unclear at best ---- they might want nothing more than destruction itself rather then anything else from their quest after immortality (and maybe someone should tell them about modern medicine)? In any event though – one thing remains true regardless : whether or not success comes easy depends entirely upon how much effort we put into conquering whatever challenges lie ahead along with having faith deep down inside ourselves too ;) So let’s get started now shall We?"
pipeline_tag: text-generation
---


<div align="center">
Expand Down
11 changes: 0 additions & 11 deletions README/huggingface_widget_base.md

This file was deleted.

11 changes: 0 additions & 11 deletions README/huggingface_widget_chat.md

This file was deleted.

0 comments on commit 90dffd5

Please sign in to comment.