mirror of
https://github.com/gradio-app/gradio.git
synced 2024-11-21 01:01:05 +08:00
Fix functional tests (#5682)
* unnamed * add changeset * add build --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
parent
f661c0733b
commit
c57f1b75e2
6
.changeset/brave-toes-hunt.md
Normal file
6
.changeset/brave-toes-hunt.md
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
"@gradio/client": minor
|
||||
"gradio": minor
|
||||
---
|
||||
|
||||
feat:Fix functional tests
|
1
.github/workflows/ui.yml
vendored
1
.github/workflows/ui.yml
vendored
@ -65,6 +65,7 @@ jobs:
|
||||
run: |
|
||||
. venv/bin/activate
|
||||
python -m pip install -r demo/outbreak_forecast/requirements.txt
|
||||
- run: pnpm build
|
||||
- run: pnpm exec playwright install chromium
|
||||
- name: run browser tests
|
||||
run: |
|
||||
|
@ -399,11 +399,6 @@ export function api_factory(fetch_implementation: typeof fetch): Client {
|
||||
|
||||
if (typeof endpoint === "number") {
|
||||
fn_index = endpoint;
|
||||
if (fn_index in api.unnamed_endpoints) {
|
||||
api_info = api.unnamed_endpoints[fn_index];
|
||||
} else {
|
||||
throw new Error(`Invalid function index: ${fn_index}`);
|
||||
}
|
||||
api_info = api.unnamed_endpoints[fn_index];
|
||||
} else {
|
||||
const trimmed_endpoint = endpoint.replace(/^\//, "");
|
||||
|
Loading…
Reference in New Issue
Block a user