Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
machineuser
commited on
Commit
·
ca38817
1
Parent(s):
a8f4ccf
Sync widgets demo
Browse files
packages/tasks/src/model-libraries-snippets.ts
CHANGED
|
@@ -140,6 +140,12 @@ export const flair = (model: ModelData): string[] => [
|
|
| 140 |
tagger = SequenceTagger.load("${model.id}")`,
|
| 141 |
];
|
| 142 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 143 |
export const keras = (model: ModelData): string[] => [
|
| 144 |
`from huggingface_hub import from_pretrained_keras
|
| 145 |
|
|
|
|
| 140 |
tagger = SequenceTagger.load("${model.id}")`,
|
| 141 |
];
|
| 142 |
|
| 143 |
+
export const gliner = (model: ModelData): string[] => [
|
| 144 |
+
`from model import GLiNER
|
| 145 |
+
|
| 146 |
+
model = GLiNER.from_pretrained("${model.id}")`,
|
| 147 |
+
];
|
| 148 |
+
|
| 149 |
export const keras = (model: ModelData): string[] => [
|
| 150 |
`from huggingface_hub import from_pretrained_keras
|
| 151 |
|
packages/tasks/src/model-libraries.ts
CHANGED
|
@@ -157,6 +157,16 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
|
|
| 157 |
term: { path: "pytorch_model.bin" },
|
| 158 |
},
|
| 159 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 160 |
keras: {
|
| 161 |
prettyLabel: "Keras",
|
| 162 |
repoName: "Keras",
|
|
|
|
| 157 |
term: { path: "pytorch_model.bin" },
|
| 158 |
},
|
| 159 |
},
|
| 160 |
+
gliner: {
|
| 161 |
+
prettyLabel: "GLiNER",
|
| 162 |
+
repoName: "GLiNER",
|
| 163 |
+
repoUrl: "https://github.com/urchade/GLiNER",
|
| 164 |
+
snippets: snippets.gliner,
|
| 165 |
+
filter: false,
|
| 166 |
+
countDownloads: {
|
| 167 |
+
term: { path: "gliner_config.json" },
|
| 168 |
+
},
|
| 169 |
+
},
|
| 170 |
keras: {
|
| 171 |
prettyLabel: "Keras",
|
| 172 |
repoName: "Keras",
|