Spaces:
Runtime error
Runtime error
kaushikbar
commited on
Commit
·
b76b34e
1
Parent(s):
f657d03
Testing app
Browse files
app.py
CHANGED
|
@@ -1,16 +1,6 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
gr.Interface.load("huggingface/NDugar/debertav3-mnli-snli-anli").launch()
|
| 3 |
-
|
| 4 |
-
'''
|
| 5 |
-
import gradio as gr
|
| 6 |
import datetime
|
| 7 |
from transformers import pipeline
|
| 8 |
-
|
| 9 |
-
models = {'norsk': 'NbAiLab/nb-bert-base-mnli', #'english': 'DeepPavlov/xlm-roberta-large-en-ru-mnli',
|
| 10 |
-
English: Narsil/deberta-large-mnli-zero-cls
|
| 11 |
-
German: Sahajtomar/German_Zeroshot
|
| 12 |
-
Spanish: Recognai/zeroshot_selectra_medium
|
| 13 |
-
Italian: joeddav/xlm-roberta-large-xnl}
|
| 14 |
classifier = pipeline("zero-shot-classification", model="NbAiLab/nb-bert-base-mnli")
|
| 15 |
|
| 16 |
|
|
@@ -51,4 +41,3 @@ iface = gr.Interface(
|
|
| 51 |
[example_text2, example_labels2]
|
| 52 |
])
|
| 53 |
iface.launch()
|
| 54 |
-
'''
|
|
|
|
| 1 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
import datetime
|
| 3 |
from transformers import pipeline
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
classifier = pipeline("zero-shot-classification", model="NbAiLab/nb-bert-base-mnli")
|
| 5 |
|
| 6 |
|
|
|
|
| 41 |
[example_text2, example_labels2]
|
| 42 |
])
|
| 43 |
iface.launch()
|
|
|