Update README.md
Browse files
README.md
CHANGED
|
@@ -9,6 +9,50 @@ model-index:
|
|
| 9 |
inference: true
|
| 10 |
library_name: transformers
|
| 11 |
pipeline_tag: text2text-generation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
---
|
| 13 |
|
| 14 |
<!-- This model card has been generated automatically according to the information Keras had access to. You should
|
|
|
|
| 9 |
inference: true
|
| 10 |
library_name: transformers
|
| 11 |
pipeline_tag: text2text-generation
|
| 12 |
+
widget:
|
| 13 |
+
- text: >-
|
| 14 |
+
summarize: function Example() {
|
| 15 |
+
let [isLoading, setIsLoading] = React.useState(false);
|
| 16 |
+
|
| 17 |
+
let handlePress = () => {
|
| 18 |
+
// Trigger button pending state
|
| 19 |
+
setIsLoading(true);
|
| 20 |
+
|
| 21 |
+
setTimeout(() => {
|
| 22 |
+
// Cancel button pending state
|
| 23 |
+
setIsLoading(false);
|
| 24 |
+
}, 3000);
|
| 25 |
+
};
|
| 26 |
+
|
| 27 |
+
return (
|
| 28 |
+
<Button variant="primary" isPending={isLoading} onPress={handlePress}>
|
| 29 |
+
Click me!
|
| 30 |
+
</Button>
|
| 31 |
+
);
|
| 32 |
+
}
|
| 33 |
+
example_title: Question answering
|
| 34 |
+
- text: >-
|
| 35 |
+
question: What does the setTimeout function do? context: function Example() {
|
| 36 |
+
let [isLoading, setIsLoading] = React.useState(false);
|
| 37 |
+
|
| 38 |
+
let handlePress = () => {
|
| 39 |
+
// Trigger button pending state
|
| 40 |
+
setIsLoading(true);
|
| 41 |
+
|
| 42 |
+
setTimeout(() => {
|
| 43 |
+
// Cancel button pending state
|
| 44 |
+
setIsLoading(false);
|
| 45 |
+
}, 3000);
|
| 46 |
+
};
|
| 47 |
+
|
| 48 |
+
return (
|
| 49 |
+
<Button variant="primary" isPending={isLoading} onPress={handlePress}>
|
| 50 |
+
Click me!
|
| 51 |
+
</Button>
|
| 52 |
+
);
|
| 53 |
+
}
|
| 54 |
+
example_title: Summarization
|
| 55 |
+
|
| 56 |
---
|
| 57 |
|
| 58 |
<!-- This model card has been generated automatically according to the information Keras had access to. You should
|