Upload folder using huggingface_hub
Browse files
6.3.1/utils/src/utils.svelte.ts
CHANGED
|
@@ -338,7 +338,11 @@ export class Gradio<T extends object = {}, U extends object = {}> {
|
|
| 338 |
|
| 339 |
this.load_component = this.shared.load_component;
|
| 340 |
|
| 341 |
-
if (!is_browser || _props.props?.__GRADIO_BROWSER_TEST__)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 342 |
const { register, dispatcher } = getContext<{
|
| 343 |
register: (
|
| 344 |
id: number,
|
|
|
|
| 338 |
|
| 339 |
this.load_component = this.shared.load_component;
|
| 340 |
|
| 341 |
+
if (!is_browser || _props.props?.__GRADIO_BROWSER_TEST__) {
|
| 342 |
+
// Provide a no-op dispatcher for test environments
|
| 343 |
+
this.dispatcher = () => {};
|
| 344 |
+
return;
|
| 345 |
+
}
|
| 346 |
const { register, dispatcher } = getContext<{
|
| 347 |
register: (
|
| 348 |
id: number,
|