Skip to content

Commit

Permalink
Merge branch '5.0-dev' into streaming-in-out
Browse files Browse the repository at this point in the history
freddyaboulton committed Aug 12, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents afddfc9 + 8297e17 commit cdb4b9f
Showing 207 changed files with 1,498 additions and 375 deletions.
5 changes: 5 additions & 0 deletions .changeset/better-results-try.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"gradio": patch
---

fix:Catch OSErrors in `HuggingFaceDatasetSaver._deserialize_components`
6 changes: 0 additions & 6 deletions .changeset/cuddly-loops-write.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/cuddly-news-stare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"website": minor
---

feat:Add warning to guides and change styling of tip
7 changes: 0 additions & 7 deletions .changeset/dark-dancers-hide.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/eager-roses-throw.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/four-zebras-worry.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/happy-lands-matter.md

This file was deleted.

10 changes: 0 additions & 10 deletions .changeset/legal-areas-call.md

This file was deleted.

7 changes: 7 additions & 0 deletions .changeset/new-masks-retire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@gradio/chatbot": minor
"@gradio/code": minor
"gradio": minor
---

feat:Add copy all messages button to chatbot
6 changes: 0 additions & 6 deletions .changeset/odd-apes-run.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pretty-boats-melt.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/rude-results-bow.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/shaky-mangos-yell.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/slimy-cases-cough.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/ten-lands-change.md

This file was deleted.

6 changes: 6 additions & 0 deletions .changeset/violet-eyes-stand.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@gradio/dataset": patch
"gradio": patch
---

fix:Fix unexpected rendering of Dataset
5 changes: 5 additions & 0 deletions .github/workflows/delete-stale-spaces.yml
Original file line number Diff line number Diff line change
@@ -12,8 +12,13 @@ on:
required: true
default: "7"

permissions: {}

jobs:
delete-old-spaces:
permissions:
contents: read
environment: deploy_spaces
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
8 changes: 7 additions & 1 deletion .github/workflows/generate-changeset.yml
Original file line number Diff line number Diff line change
@@ -13,10 +13,14 @@ concurrency:
group: "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}"
cancel-in-progress: true

permissions: {}

jobs:
get-pr:
runs-on: ubuntu-latest

permissions:
contents: read
pull-requests: read
if: github.event.workflow_run.conclusion == 'success'
outputs:
found_pr: ${{ steps.pr_details.outputs.found_pr }}
@@ -38,6 +42,8 @@ jobs:
pr_number: ${{ needs.get-pr.outputs.pr_number }}
message: changes~pending~null
version:
permissions:
contents: read
environment: changeset
name: version
needs: get-pr
7 changes: 7 additions & 0 deletions .github/workflows/previews-build.yml
Original file line number Diff line number Diff line change
@@ -13,10 +13,15 @@ concurrency:
group: "${{ github.event.pull_request.number }}-${{ github.ref_name }}-${{ github.workflow }}"
cancel-in-progress: true

permissions: {}

jobs:
changes:
name: "changes"
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
outputs:
should_run: ${{ steps.changes.outputs.should_run }}
sha: ${{ steps.changes.outputs.sha }}
@@ -29,6 +34,8 @@ jobs:
filter: "visual"
token: ${{ secrets.GITHUB_TOKEN }}
build:
permissions:
contents: read
name: "previews-build"
runs-on: ubuntu-22.04
needs: changes
4 changes: 2 additions & 2 deletions .github/workflows/previews-deploy.yml
Original file line number Diff line number Diff line change
@@ -41,7 +41,7 @@ jobs:
comment-spaces-start:
needs: changes
uses: "./.github/workflows/comment-queue.yml"
if: ${{github.event.workflow_run.conclusion == 'success' && needs.changes.outputs.should_run == 'true' }}
if: ${{ needs.changes.outputs.should_run == 'true' }}
secrets:
gh_token: ${{ secrets.COMMENT_TOKEN }}
with:
@@ -150,7 +150,7 @@ jobs:
comment-spaces-failure:
uses: "./.github/workflows/comment-queue.yml"
needs: [deploy, changes]
if: always() && github.event.workflow_run.conclusion == 'success' && needs.deploy.result == 'failure' && needs.changes.outputs.should_run == 'true'
if: always() && needs.deploy.result == 'failure' && needs.changes.outputs.should_run == 'true'
secrets:
gh_token: ${{ secrets.COMMENT_TOKEN }}
with:
7 changes: 7 additions & 0 deletions .github/workflows/storybook-build.yml
Original file line number Diff line number Diff line change
@@ -16,8 +16,13 @@ concurrency:
group: "${{ github.event.pull_request.number }}-${{ github.ref_name }}-${{ github.workflow }}"
cancel-in-progress: true

permissions: {}

jobs:
changes:
permissions:
contents: read
pull-requests: read
name: "changes"
runs-on: ubuntu-latest
outputs:
@@ -33,6 +38,8 @@ jobs:
filter: "visual"
token: ${{ secrets.GITHUB_TOKEN }}
build:
permissions:
contents: read
name: :storybook-build
runs-on: ubuntu-22.04
needs: changes
20 changes: 13 additions & 7 deletions .github/workflows/storybook-deploy.yml
Original file line number Diff line number Diff line change
@@ -10,6 +10,8 @@ concurrency:
group: "${{ github.event.workflow_run.head_repository.full_name }}-${{ github.event.workflow_run.head_branch }}-${{ github.workflow_ref }}"
cancel-in-progress: true

permissions: {}

jobs:
changes:
name: "changes"
@@ -39,17 +41,20 @@ jobs:
comment-chromatic-start:
uses: "./.github/workflows/comment-queue.yml"
needs: changes
if: ${{ needs.changes.outputs.should_run == 'true' }}
if: needs.changes.outputs.should_run == 'true' || contains(needs.changes.outputs.labels, 'no-visual-update')
secrets:
gh_token: ${{ secrets.COMMENT_TOKEN }}
with:
pr_number: ${{ needs.changes.outputs.pr_number }}
message: |
storybook~pending~null
update-status:
permissions:
actions: read
statuses: write
runs-on: ubuntu-latest
needs: changes
if: ${{ github.event.workflow_run.conclusion == 'success' && (needs.changes.outputs.should_run == 'false' || contains(needs.changes.outputs.labels, 'no-visual-update')) }}
if: needs.changes.outputs.should_run == 'false' || contains(needs.changes.outputs.labels, 'no-visual-update')
steps:
- name: update status
uses: gradio-app/github/actions/set-commit-status@main
@@ -59,18 +64,19 @@ jobs:
name: "UI Tests"
run_id: ${{ needs.changes.outputs.run_id }}
deploy:
permissions:
actions: read
contents: read
environment: storybook
name: "storybook-deploy"
needs: changes
if: ${{ github.event.workflow_run.conclusion == 'success' && needs.changes.outputs.should_run == 'true' && github.repository == 'gradio-app/gradio' && !contains(needs.changes.outputs.labels, 'no-visual-update') }}
if: needs.changes.outputs.should_run == 'true' && github.repository == 'gradio-app/gradio' && !contains(needs.changes.outputs.labels, 'no-visual-update')
runs-on: ubuntu-latest
outputs:
changes: ${{ steps.publish-chromatic.outputs.changeCount }}
errors: ${{ steps.publish-chromatic.outputs.errorCount }}
storybook_url: ${{ steps.publish-chromatic.outputs.storybookUrl }}
build_url: ${{ steps.publish-chromatic.outputs.buildUrl }}
permissions:
actions: read
steps:
- uses: actions/checkout@v4
with:
@@ -104,14 +110,14 @@ jobs:
secrets:
gh_token: ${{ secrets.COMMENT_TOKEN }}
with:
pr_number: ${{ github.event.workflow_run.conclusion == 'success' && needs.changes.outputs.pr_number }}
pr_number: ${{ needs.changes.outputs.pr_number }}
message: |
storybook~success~${{ needs.deploy.outputs.storybook_url }}
comment-chromatic-fail:
uses: "./.github/workflows/comment-queue.yml"
needs: [deploy, changes]
if: always() && github.event.workflow_run.conclusion == 'success' && needs.deploy.result == 'failure'
if: always() && needs.deploy.result == 'failure'
secrets:
gh_token: ${{ secrets.COMMENT_TOKEN }}
with:
7 changes: 7 additions & 0 deletions .github/workflows/test-functional-lite.yml
Original file line number Diff line number Diff line change
@@ -11,8 +11,13 @@ concurrency:
group: "${{ github.event.pull_request.number }}-${{ github.ref_name }}-${{ github.workflow }}"
cancel-in-progress: true

permissions: {}

jobs:
changes:
permissions:
contents: read
pull-requests: read
name: "changes"
runs-on: ubuntu-latest
outputs:
@@ -29,6 +34,8 @@ jobs:
filter: "functional"
token: ${{ secrets.GITHUB_TOKEN }}
test:
permissions:
contents: read
name: "functional-test-lite"
runs-on: ubuntu-latest
needs: changes
7 changes: 7 additions & 0 deletions .github/workflows/test-functional.yml
Original file line number Diff line number Diff line change
@@ -11,8 +11,13 @@ concurrency:
group: "${{ github.event.pull_request.number }}-${{ github.ref_name }}-${{ github.workflow }}"
cancel-in-progress: true

permissions: {}

jobs:
changes:
permissions:
contents: read
pull-requests: read
name: "changes"
runs-on: ubuntu-latest
outputs:
@@ -29,6 +34,8 @@ jobs:
filter: "functional"
token: ${{ secrets.GITHUB_TOKEN }}
test:
permissions:
contents: read
name: "functional-test"
runs-on: ubuntu-latest
needs: changes
4 changes: 4 additions & 0 deletions .github/workflows/test-hygiene.yml
Original file line number Diff line number Diff line change
@@ -11,8 +11,12 @@ concurrency:
group: "${{ github.event.pull_request.number }}-${{ github.ref_name }}-${{ github.workflow }}"
cancel-in-progress: true

permissions: {}

jobs:
test:
permissions:
contents: read
name: "hygiene-test"
runs-on: ubuntu-latest
steps:
8 changes: 8 additions & 0 deletions .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@ name: "python"

on:
pull_request:
types: [opened, synchronize, reopened, edited, labeled, unlabeled]
push:
branches:
- main
@@ -15,8 +16,13 @@ env:
NODE_OPTIONS: "--max-old-space-size=4096"
HF_TOKEN: ${{ vars.HF_TOKEN }}

permissions: {}

jobs:
changes:
permissions:
contents: read
pull-requests: read
name: "changes"
runs-on: ubuntu-latest
outputs:
@@ -33,6 +39,8 @@ jobs:
filter: "gradio"
token: ${{ secrets.GITHUB_TOKEN }}
test:
permissions:
contents: read
name: "test-${{ matrix.os }}-${{ matrix.test-type == 'flaky' && 'flaky' || 'not-flaky'}}"
needs: changes
if: needs.changes.outputs.should_run == 'true'
7 changes: 7 additions & 0 deletions .github/workflows/tests-js.yml
Original file line number Diff line number Diff line change
@@ -16,8 +16,13 @@ concurrency:
group: "${{ github.event.pull_request.number }}-${{ github.ref_name }}-${{ github.workflow }}"
cancel-in-progress: true

permissions: {}

jobs:
changes:
permissions:
contents: read
pull-requests: read
name: "changes"
runs-on: ubuntu-latest
outputs:
@@ -34,6 +39,8 @@ jobs:
filter: "js"
token: ${{ secrets.GITHUB_TOKEN }}
test:
permissions:
contents: read
name: js-test
runs-on: ubuntu-22.04
needs: changes
Loading

0 comments on commit cdb4b9f

Please sign in to comment.