Update app.py
Browse files
app.py
CHANGED
|
@@ -33,7 +33,7 @@ def get_example(dataset):
|
|
| 33 |
|
| 34 |
|
| 35 |
dataset_dict = {dataset.name: get_example(dataset.name) for dataset in ABSADatasetList()}
|
| 36 |
-
aspect_extractor = ATEPCCheckpointManager.get_aspect_extractor(checkpoint='
|
| 37 |
|
| 38 |
|
| 39 |
def perform_inference(text, dataset):
|
|
@@ -70,6 +70,7 @@ with demo:
|
|
| 70 |
gr.Markdown("You can find the datasets at [github.com/yangheng95/ABSADatasets](https://github.com/yangheng95/ABSADatasets/tree/v1.2/datasets/text_classification)")
|
| 71 |
dataset_ids = gr.Radio(choices=[dataset.name for dataset in ABSADatasetList()[:-1]], value='Laptop14', label="Datasets")
|
| 72 |
inference_button = gr.Button("Let's go!")
|
|
|
|
| 73 |
gr.Markdown("This demo support many other language as well, you can try and explore the results of other languages by yourself.")
|
| 74 |
|
| 75 |
with gr.Column():
|
|
|
|
| 33 |
|
| 34 |
|
| 35 |
dataset_dict = {dataset.name: get_example(dataset.name) for dataset in ABSADatasetList()}
|
| 36 |
+
aspect_extractor = ATEPCCheckpointManager.get_aspect_extractor(checkpoint='multilingual')
|
| 37 |
|
| 38 |
|
| 39 |
def perform_inference(text, dataset):
|
|
|
|
| 70 |
gr.Markdown("You can find the datasets at [github.com/yangheng95/ABSADatasets](https://github.com/yangheng95/ABSADatasets/tree/v1.2/datasets/text_classification)")
|
| 71 |
dataset_ids = gr.Radio(choices=[dataset.name for dataset in ABSADatasetList()[:-1]], value='Laptop14', label="Datasets")
|
| 72 |
inference_button = gr.Button("Let's go!")
|
| 73 |
+
gr.Markdown("There is a [demo](https://huggingface.co/spaces/yangheng/PyABSA-ATEPC-Chinese) specialized for the Chinese langauge")
|
| 74 |
gr.Markdown("This demo support many other language as well, you can try and explore the results of other languages by yourself.")
|
| 75 |
|
| 76 |
with gr.Column():
|