-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '5.0-dev' into base-64-image
- Loading branch information
Showing
162 changed files
with
1,337 additions
and
311 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"gradio": minor | ||
--- | ||
|
||
feat:test semgrep ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"website": minor | ||
--- | ||
|
||
feat:Expanding AI Playground Prompt for Qwen |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@gradio/code": minor | ||
"gradio": minor | ||
--- | ||
|
||
feat:Add Jinja2 language to Code component |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@gradio/dropdown": minor | ||
"gradio": minor | ||
--- | ||
|
||
feat:Fix single select dropdown |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@gradio/nativeplot": minor | ||
"gradio": minor | ||
--- | ||
|
||
feat:Hide x axis labels |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"website": minor | ||
--- | ||
|
||
feat:Use latest lite wheel on website |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"@gradio/dropdown": minor | ||
"@gradio/radio": minor | ||
"gradio": minor | ||
--- | ||
|
||
feat:Fix change triggers for dropdown and radio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
name: semgrep ci | ||
|
||
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 --config .github/workflows/semgrep_rules.yaml | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
rules: | ||
- id: detect-os-system-calls | ||
pattern: os.system(...) | ||
message: "Unsafe use of os.system(). Consider using subprocess.run() instead." | ||
languages: [python] | ||
severity: WARNING | ||
|
||
- id: detect-sql-injection | ||
pattern: 'execute("SELECT * FROM " + $TABLE)' | ||
message: "Potential SQL injection detected. Use parameterized queries." | ||
languages: [python] | ||
severity: ERROR | ||
|
||
- id: detect-eval-usage | ||
pattern: eval(...) | ||
message: "Use of eval() detected. This can be dangerous if used with untrusted input." | ||
languages: [python] | ||
severity: ERROR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: trigger-semgrep | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- 5.0-dev | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
changes: | ||
permissions: | ||
contents: read | ||
pull-requests: read | ||
name: "changes" | ||
runs-on: ubuntu-latest | ||
outputs: | ||
should_run: ${{ steps.changes.outputs.should_run }} | ||
sha: ${{ steps.changes.outputs.sha }} | ||
pr_number: ${{ steps.changes.outputs.pr_number }} | ||
source_branch: ${{ steps.changes.outputs.source_branch }} | ||
source_repo: ${{ steps.changes.outputs.source_repo }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: "gradio-app/gradio/.github/actions/changes@main" | ||
id: changes | ||
with: | ||
filter: "gradio" | ||
token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.