Spaces:
Runtime error
Runtime error
fix: fix incorrect path
Browse files
app.py
CHANGED
|
@@ -18,14 +18,14 @@ import gradio as gr
|
|
| 18 |
|
| 19 |
tokenizer=AutoTokenizer.from_pretrained(
|
| 20 |
'airesearch/wangchanberta-base-att-spm-uncased',
|
| 21 |
-
revision='finetuned@
|
| 22 |
)
|
| 23 |
|
| 24 |
#pipeline
|
| 25 |
text_cls_pipeline = pipeline(task='sentiment-analysis',
|
| 26 |
tokenizer=tokenizer,
|
| 27 |
model = 'airesearch/wangchanberta-base-att-spm-uncased',
|
| 28 |
-
revision ='finetuned@
|
| 29 |
|
| 30 |
|
| 31 |
def classify_text(text: str):
|
|
|
|
| 18 |
|
| 19 |
tokenizer=AutoTokenizer.from_pretrained(
|
| 20 |
'airesearch/wangchanberta-base-att-spm-uncased',
|
| 21 |
+
revision='finetuned@wisesight_sentiment-v1.1'
|
| 22 |
)
|
| 23 |
|
| 24 |
#pipeline
|
| 25 |
text_cls_pipeline = pipeline(task='sentiment-analysis',
|
| 26 |
tokenizer=tokenizer,
|
| 27 |
model = 'airesearch/wangchanberta-base-att-spm-uncased',
|
| 28 |
+
revision ='finetuned@wisesight_sentiment-v1.1')
|
| 29 |
|
| 30 |
|
| 31 |
def classify_text(text: str):
|