machineuser commited on
Commit
e530979
1 Parent(s): 52c7cc9

Sync widgets demo

Browse files
packages/tasks/src/index.ts CHANGED
@@ -39,8 +39,6 @@ export type {
39
  } from "./widget-example";
40
  export { InferenceDisplayability } from "./model-data";
41
 
42
- export { TAG_NFAA_CONTENT, OTHER_TAGS_SUGGESTIONS, TAG_TEXT_GENERATION_INFERENCE, TAG_CUSTOM_CODE } from "./tags";
43
-
44
  import * as snippets from "./snippets";
45
  export { snippets };
46
 
 
39
  } from "./widget-example";
40
  export { InferenceDisplayability } from "./model-data";
41
 
 
 
42
  import * as snippets from "./snippets";
43
  export { snippets };
44
 
packages/tasks/src/model-libraries.ts CHANGED
@@ -44,6 +44,8 @@ export enum ModelLibrary {
44
 
45
  export type ModelLibraryKey = keyof typeof ModelLibrary;
46
 
47
- export const ALL_DISPLAY_MODEL_LIBRARY_KEYS = Object.keys(ModelLibrary).filter(
 
 
48
  (k) => !["doctr", "k2", "mindspore", "tensorflowtts"].includes(k)
49
  );
 
44
 
45
  export type ModelLibraryKey = keyof typeof ModelLibrary;
46
 
47
+ export const ALL_MODEL_LIBRARY_KEYS = Object.keys(ModelLibrary) as ModelLibraryKey[];
48
+
49
+ export const ALL_DISPLAY_MODEL_LIBRARY_KEYS = ALL_MODEL_LIBRARY_KEYS.filter(
50
  (k) => !["doctr", "k2", "mindspore", "tensorflowtts"].includes(k)
51
  );
packages/tasks/src/tags.ts DELETED
@@ -1,15 +0,0 @@
1
- export const TAG_NFAA_CONTENT = "not-for-all-audiences";
2
- export const OTHER_TAGS_SUGGESTIONS = [
3
- "chemistry",
4
- "biology",
5
- "finance",
6
- "legal",
7
- "music",
8
- "art",
9
- "code",
10
- "climate",
11
- "medical",
12
- TAG_NFAA_CONTENT,
13
- ];
14
- export const TAG_TEXT_GENERATION_INFERENCE = "text-generation-inference";
15
- export const TAG_CUSTOM_CODE = "custom_code";