Skip to content

Commit

Permalink
Merge branch '5.0-dev' into lite-worker-refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
whitphx authored Oct 3, 2024
2 parents c09687f + f8de5d2 commit 8576fa2
Show file tree
Hide file tree
Showing 310 changed files with 2,929 additions and 1,095 deletions.
7 changes: 7 additions & 0 deletions .changeset/bright-apes-fly.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@gradio/audio": minor
"gradio": minor
"website": minor
---

feat:Start/stop recoding from the backend. Add guide on conversational chatbots
9 changes: 9 additions & 0 deletions .changeset/brown-queens-begin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@gradio/lite": minor
"@gradio/tabitem": minor
"@gradio/tabs": minor
"gradio": minor
"website": minor
---

feat:Playground requirements tab
7 changes: 7 additions & 0 deletions .changeset/chilly-socks-poke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@gradio/code": minor
"@gradio/icons": minor
"gradio": minor
---

feat:Improve `gr.Code`
6 changes: 6 additions & 0 deletions .changeset/clean-pigs-arrive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@gradio/atoms": minor
"gradio": minor
---

feat:Centre components within `Block` when height and width are set
5 changes: 5 additions & 0 deletions .changeset/five-teeth-relax.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@gradio/preview": patch
---

fix:Fix package.json `exports` of @gradio/preview
10 changes: 10 additions & 0 deletions .changeset/heavy-goats-grab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@gradio/button": minor
"@gradio/column": minor
"@gradio/dataframe": minor
"@gradio/row": minor
"@gradio/tabs": minor
"gradio": minor
---

feat:UI theme fixes
6 changes: 6 additions & 0 deletions .changeset/honest-plums-peel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@gradio/chatbot": minor
"gradio": minor
---

feat:Chatbot bug fixes
6 changes: 6 additions & 0 deletions .changeset/khaki-ways-agree.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@gradio/slider": minor
"gradio": minor
---

feat:Fix `slider-color` var
5 changes: 5 additions & 0 deletions .changeset/lovely-ties-live.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"gradio": minor
---

feat:Add support for 3rd party providers to `gr.load`, and provide a better UX for conversational models
5 changes: 5 additions & 0 deletions .changeset/many-moons-like.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"gradio": minor
---

feat:Fix custom component CLI unit tests
5 changes: 0 additions & 5 deletions .changeset/metal-nights-march.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/old-items-sink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@self/app": minor
---

feat:fix css
6 changes: 6 additions & 0 deletions .changeset/plenty-dragons-fold.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@gradio/wasm": minor
"gradio": minor
---

feat:Pre/post-processing download requests
17 changes: 17 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
"changesets": [
"beige-houses-shine",
"breezy-olives-wonder",
"bright-apes-fly",
"busy-jokes-sit",
"busy-tools-chew",
"calm-jobs-hope",
Expand Down Expand Up @@ -110,18 +111,21 @@
"every-geese-shave",
"fancy-pianos-dig",
"few-clowns-notice",
"five-teeth-relax",
"floppy-keys-heal",
"floppy-nails-grab",
"gold-bats-return",
"green-pigs-wonder",
"green-wasps-invent",
"honest-plums-peel",
"huge-corners-tease",
"hungry-dragons-drum",
"hungry-tips-sin",
"khaki-ducks-stare",
"legal-masks-pay",
"light-bats-arrive",
"long-donkeys-hang",
"lovely-ties-live",
"lucky-hotels-sort",
"metal-nights-march",
"modern-baboons-swim",
Expand All @@ -130,29 +134,42 @@
"nice-badgers-admire",
"nice-rats-flash",
"nine-hotels-juggle",
"old-items-sink",
"open-chefs-say",
"pink-shirts-fry",
"plenty-dragons-fold",
"polite-bugs-vanish",
"pretty-hairs-rest",
"proud-memes-fold",
"public-baboons-dig",
"public-webs-melt",
"puny-bats-smell",
"red-brooms-bow",
"rich-crews-suffer",
"rotten-bears-bathe",
"rotten-dingos-cross",
"sad-chicken-sleep",
"sad-steaks-shout",
"salty-vans-behave",
"seven-deer-occur",
"sharp-bikes-sleep",
"shy-foxes-flow",
"silly-chefs-marry",
"six-bobcats-cry",
"social-lizards-tickle",
"solid-chicken-love",
"some-clocks-think",
"sour-ties-repair",
"strong-stars-count",
"stupid-eggs-sing",
"stupid-tires-stare",
"sweet-papers-fail",
"tall-moose-yawn",
"tame-zoos-care",
"thick-geese-divide",
"thick-wasps-love",
"three-toys-knock",
"tidy-bobcats-marry",
"tired-moons-tell",
"tough-rooms-flash",
"true-pigs-build",
Expand Down
5 changes: 0 additions & 5 deletions .changeset/public-webs-melt.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/red-brooms-bow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"gradio": minor
---

feat:Use or `pathlib.Path` objects to indicate filepaths for `css`, `js`, and `head` parameters
7 changes: 7 additions & 0 deletions .changeset/rich-crews-suffer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@gradio/dataframe": minor
"gradio": minor
"website": minor
---

feat:Fix. Triggered dataframe change event for header change
5 changes: 5 additions & 0 deletions .changeset/rotten-dingos-cross.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"gradio": minor
---

feat:Reduce analytics that are collected
6 changes: 6 additions & 0 deletions .changeset/silent-moose-push.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@gradio/chatbot": minor
"gradio": minor
---

feat:Fixes: Chatbot examples for custom chatbot + rename `suggestions` -> `examples`
5 changes: 5 additions & 0 deletions .changeset/silly-chefs-marry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"website": minor
---

feat:Refactoring playground
5 changes: 5 additions & 0 deletions .changeset/sour-ties-repair.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"gradio": minor
---

feat:Small changes to caching
5 changes: 5 additions & 0 deletions .changeset/stupid-tires-stare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"gradio": minor
---

feat:Fix SSR mode flag with `mount_gradio_app` and revert changes to pytests
9 changes: 9 additions & 0 deletions .changeset/sweet-papers-fail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@gradio/core": minor
"@gradio/nativeplot": minor
"@gradio/plot": minor
"@self/spa": minor
"gradio": minor
---

feat:Fix plots
5 changes: 5 additions & 0 deletions .changeset/swift-pumas-fail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"gradio": minor
---

feat:test semgrep 2
5 changes: 5 additions & 0 deletions .changeset/tall-dryers-own.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"gradio": minor
---

feat:test semgrep in ci
5 changes: 5 additions & 0 deletions .changeset/tame-zoos-care.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"gradio": minor
---

feat:Update object detection guide
5 changes: 5 additions & 0 deletions .changeset/thin-boxes-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"gradio": minor
---

feat:Fix node process to run with correct server name
6 changes: 6 additions & 0 deletions .changeset/thirty-cloths-taste.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"gradio": patch
"gradio_client": patch
---

fix:Check for `file_types` parameter in the backend
5 changes: 5 additions & 0 deletions .changeset/three-toys-knock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"gradio": minor
---

feat:Lite: HTTPX client improvement
5 changes: 5 additions & 0 deletions .changeset/tidy-bobcats-marry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"website": minor
---

feat:Improve UI on the Playground
5 changes: 5 additions & 0 deletions .changeset/two-geckos-accept.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"gradio": minor
---

feat:Minor fixes to docs and a demo
5 changes: 5 additions & 0 deletions .changeset/young-memes-shake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@self/app": minor
---

feat:Ensure media queries work for SSR mode
4 changes: 2 additions & 2 deletions .config/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
../js/lite/src/theme.css
../js/storybook/theme.css
**/gradio_cached_examples/**
**/storybook-static/**
**/storybook-static/**
**/.vscode/**
sweep.yaml
**/.vercel/**
Expand All @@ -32,4 +32,4 @@ sweep.yaml
**/venv/**
../js/app/src/api_docs/CodeSnippet.svelte
../js/app/src/api_docs/RecordingSnippet.svelte
/.changeset/pre.json
../.changeset/pre.json
5 changes: 4 additions & 1 deletion .config/copy_frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def copy_js_code(root: str | pathlib.Path):
"playwright-report",
"workbench",
"tooltils",
"component-test",
"core",
"spa",
]
for entry in (pathlib.Path(root) / "js").iterdir():
if (
Expand Down Expand Up @@ -46,7 +49,7 @@ def ignore(s, names):
shutil.copytree(
str(pathlib.Path(root) / "client" / "js"),
str(pathlib.Path("gradio") / "_frontend_code" / "client"),
ignore=lambda d, names: ["node_modules"],
ignore=lambda d, names: ["node_modules", "test"],
dirs_exist_ok=True,
)

Expand Down
1 change: 1 addition & 0 deletions .config/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export default [
"js/spa/test/**/*",
"**/*vite.config.ts",
"**/_website/**/*",
"**/app/**/*",
"**/_spaces-test/**/*",
"**/preview/test/**/*",
"**/component-test/**/*",
Expand Down
64 changes: 64 additions & 0 deletions .github/workflows/semgrep.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Semgrep

on:
workflow_run:
workflows: ["trigger-semgrep"]
types:
- completed

env:
CI: true
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "1"

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:
semgrep:
permissions:
contents: read
name: semgrep/ci
runs-on: ubuntu-latest
container:
image: semgrep/semgrep
outputs:
pr_number: ${{ steps.json.outputs.pr_number }}
sha: ${{ steps.json.outputs.sha }}
if: (github.actor != 'dependabot[bot]')
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: changes
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.workflow_run.id }}
- uses: gradio-app/github/actions/json-to-output@main
id: json
with:
path: output.json
- uses: actions/checkout@v4
with:
repository: ${{ steps.json.outputs.source_repo }}
ref: ${{ steps.json.outputs.sha }}
- run: semgrep ci
env:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN2 }}
update-status:
permissions:
actions: read
statuses: write
runs-on: ubuntu-latest
needs: semgrep
steps:
- name: update status
uses: gradio-app/github/actions/commit-status@main
with:
sha: ${{ needs.semgrep.outputs.sha }}
token: ${{ secrets.GITHUB_TOKEN }}
name: "Semgrep Results"
pr: ${{ needs.semgrep.outputs.pr_number }}
result: ${{ needs.semgrep.result == 'success' && 'success' || 'failure' }}
type: all
Loading

0 comments on commit 8576fa2

Please sign in to comment.