Spaces:
Runtime error
Runtime error
mwitiderrick
commited on
Commit
•
4f86e8d
1
Parent(s):
d50de10
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import gradio as gr
|
|
5 |
markdownn = '''
|
6 |
# Text Classification Pipeline with DeepSparse
|
7 |
DeepSparse is sparsity-aware inference runtime offering GPU-class performance on CPUs and APIs to integrate ML into your application. DeepSparse provides sparsified pipelines for computer vision and NLP.
|
8 |
-
The text classification Pipeline, for example, wraps an NLP model with the proper preprocessing and postprocessing pipelines, such as tokenization. Here is
|
9 |
```
|
10 |
from deepsparse import Pipeline
|
11 |
pipeline = Pipeline.create(task=task, model_path="zoo:nlp/text_classification/distilbert-none/pytorch/huggingface/mnli/pruned80_quant-none-vnni",model_scheme="mnli",model_config={"hypothesis_template": "This text is related to {}"},)
|
|
|
5 |
markdownn = '''
|
6 |
# Text Classification Pipeline with DeepSparse
|
7 |
DeepSparse is sparsity-aware inference runtime offering GPU-class performance on CPUs and APIs to integrate ML into your application. DeepSparse provides sparsified pipelines for computer vision and NLP.
|
8 |
+
The text classification Pipeline, for example, wraps an NLP model with the proper preprocessing and postprocessing pipelines, such as tokenization. Here is sample code for a text classification pipeline:
|
9 |
```
|
10 |
from deepsparse import Pipeline
|
11 |
pipeline = Pipeline.create(task=task, model_path="zoo:nlp/text_classification/distilbert-none/pytorch/huggingface/mnli/pruned80_quant-none-vnni",model_scheme="mnli",model_config={"hypothesis_template": "This text is related to {}"},)
|