gradio-pr-bot commited on
Commit
fe2cdf4
·
verified ·
1 Parent(s): fa326c0

Upload folder using huggingface_hub

Browse files
6.12.0/client/package.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "name": "@gradio/client",
3
- "version": "2.1.0",
4
  "description": "Gradio API client",
5
  "type": "module",
6
  "main": "dist/index.js",
 
1
  {
2
  "name": "@gradio/client",
3
+ "version": "2.2.0",
4
  "description": "Gradio API client",
5
  "type": "module",
6
  "main": "dist/index.js",
6.12.0/client/src/helpers/api_info.ts CHANGED
@@ -376,7 +376,10 @@ export function handle_message(
376
  progress_data: data.progress_data,
377
  changed_state_ids: data.success
378
  ? data.output.changed_state_ids
379
- : undefined
 
 
 
380
  },
381
  data: data.success ? data.output : null
382
  };
 
376
  progress_data: data.progress_data,
377
  changed_state_ids: data.success
378
  ? data.output.changed_state_ids
379
+ : undefined,
380
+ used_cache: data.used_cache,
381
+ cache_duration: data.cache_duration,
382
+ avg_time: data.avg_time
383
  },
384
  data: data.success ? data.output : null
385
  };
6.12.0/client/src/types.ts CHANGED
@@ -402,6 +402,9 @@ export interface Status {
402
  changed_state_ids?: number[];
403
  time_limit?: number;
404
  session_not_found?: boolean;
 
 
 
405
  }
406
 
407
  export interface StatusMessage extends Status {
 
402
  changed_state_ids?: number[];
403
  time_limit?: number;
404
  session_not_found?: boolean;
405
+ used_cache?: "full" | "partial" | null;
406
+ cache_duration?: number;
407
+ avg_time?: number;
408
  }
409
 
410
  export interface StatusMessage extends Status {