mirror of
https://github.com/gradio-app/gradio.git
synced 2025-03-07 11:46:51 +08:00
* fix-tests * [tmp] Comment-out * Fix the URL constructor calls in `resolve_wasm_src()`, `should_proxy_wasm_src()`, and `<DownloadLink />` to handle relative URLs * Remove a circular dependency between lite/index.ts and lite/custom-element/index.ts to solve a bug that the dev app is mounted twice sometimes * Fix js/app/test/image_component_events.spec.ts * Set the `testIgnore` in `.config/playwright.config.js` * Fix the Lite dev mode only to create an app and expose the controller for Playwright, without editors etc. * add changeset * Set the mocked ruff version as 0.2.2 * Extend timeout * Fix to use the built lite files instead of the dev server * add changeset * comment out failed tests * Revert "comment out failed tests" This reverts commit3580d79887
. * Fix the Gellery component to work in Wasm * Fix js/app/test/file_explorer_component_events.spec.ts to run on Wasm * Ignore queue_full_e2e_test.spec.ts * Revert "[tmp] Comment-out" This reverts commitc775c0cc29
. * Revert "Extend timeout" This reverts commit742d1e1e83
. * Remove a commented out line * Refactor file_explorer_component_events.spec.ts * Revert "fix-tests", restoring the original test-functional.yml content This reverts commit9ff2a7ddc5
. * Set CI step names * [tmp] Revert "Revert "fix-tests", restoring the original test-functional.yml content" This reverts commitde2dbe3317
. * Revert "[tmp] Revert "Revert "fix-tests", restoring the original test-functional.yml content"" This reverts commit32154f3bb1
. * [tmp] Revert "Revert "[tmp] Revert "Revert "fix-tests", restoring the original test-functional.yml content""" This reverts commit204075e190
. * Fix vite.config.js removing unnecessary code * Revert "Set the `testIgnore` in `.config/playwright.config.js`" This reverts commit98dccc5be9
. * Add gallery_component_events.spec.ts * Revert js/app/test * tweak * tweak * revert workflow changes * add changeset --------- Co-authored-by: Yuichiro Tachibana (Tsuchiya) <t.yic.yt@gmail.com> Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
51 lines
1.3 KiB
HTML
51 lines
1.3 KiB
HTML
<!doctype html>
|
|
<!-- A demo HTML file to test the bundled JS and CSS files -->
|
|
<html style="margin: 0; padding: 0; height: 100%">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta
|
|
name="viewport"
|
|
content="width=device-width, initial-scale=1, shrink-to-fit=no, maximum-scale=1"
|
|
/>
|
|
|
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
<link
|
|
rel="preconnect"
|
|
href="https://fonts.gstatic.com"
|
|
crossorigin="anonymous"
|
|
/>
|
|
|
|
<script type="module" crossorigin src="./dist/lite.js"></script>
|
|
<link rel="stylesheet" href="./dist/lite.css" />
|
|
</head>
|
|
|
|
<body style="margin: 0; padding: 0; height: 100%">
|
|
<div id="gradio-app"></div>
|
|
|
|
<script type="module">
|
|
// type="module" is necessary to use `createGradioApp()`, which is loaded with <script type="module" /> tag above.
|
|
// For the Playwright tests, set the controller to the global scope.
|
|
window.controller = createGradioApp({
|
|
target: document.getElementById("gradio-app"),
|
|
code: `
|
|
import gradio as gr
|
|
|
|
def greet(name):
|
|
return "Hello, " + name + "!"
|
|
|
|
gr.Interface(fn=greet, inputs="text", outputs="text").launch()
|
|
`,
|
|
info: true,
|
|
container: true,
|
|
isEmbed: false,
|
|
initialHeight: "300px",
|
|
eager: false,
|
|
themeMode: null,
|
|
autoScroll: false,
|
|
controlPageTitle: false,
|
|
appMode: true
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|