Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ ckpt = 'mrm8488/distilroberta-finetuned-banking77'
|
|
9 |
tokenizer = AutoTokenizer.from_pretrained(ckpt)
|
10 |
model = AutoModelForSequenceClassification.from_pretrained(ckpt)
|
11 |
|
12 |
-
classifier = pipeline('text-classification', tokenizer=tokenizer, model=model)
|
13 |
|
14 |
demo= gr.Interface.from_pipeline(classifier)
|
15 |
demo.launch()
|
|
|
9 |
tokenizer = AutoTokenizer.from_pretrained(ckpt)
|
10 |
model = AutoModelForSequenceClassification.from_pretrained(ckpt)
|
11 |
|
12 |
+
classifier = pipeline('text-classification', tokenizer=tokenizer, model=model, share=True)
|
13 |
|
14 |
demo= gr.Interface.from_pipeline(classifier)
|
15 |
demo.launch()
|