Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ aspect_extractor = ATEPCCheckpointManager.get_aspect_extractor(checkpoint='multi
|
|
36 |
|
37 |
def perform_inference(text, dataset):
|
38 |
if not text:
|
39 |
-
text = dataset_dict[dataset][random.randint(0, len(dataset_dict[dataset]))]
|
40 |
|
41 |
result = aspect_extractor.extract_aspect(inference_source=[text],
|
42 |
pred_sentiment=True)
|
@@ -55,7 +55,7 @@ def perform_inference(text, dataset):
|
|
55 |
demo = gr.Blocks()
|
56 |
|
57 |
with demo:
|
58 |
-
gr.Markdown("# Multilingual Aspect-based Sentiment Analysis
|
59 |
gr.Markdown("### Repo: [PyABSA](https://github.com/yangheng95/PyABSA)")
|
60 |
gr.Markdown("""### Author: [Heng Yang](https://github.com/yangheng95) (杨恒)
|
61 |
[](https://pepy.tech/project/pyabsa)
|
|
|
36 |
|
37 |
def perform_inference(text, dataset):
|
38 |
if not text:
|
39 |
+
text = dataset_dict[dataset][random.randint(0, len(dataset_dict[dataset])-1)]
|
40 |
|
41 |
result = aspect_extractor.extract_aspect(inference_source=[text],
|
42 |
pred_sentiment=True)
|
|
|
55 |
demo = gr.Blocks()
|
56 |
|
57 |
with demo:
|
58 |
+
gr.Markdown("# <p align='center'>Multilingual Aspect-based Sentiment Analysis !</p>")
|
59 |
gr.Markdown("### Repo: [PyABSA](https://github.com/yangheng95/PyABSA)")
|
60 |
gr.Markdown("""### Author: [Heng Yang](https://github.com/yangheng95) (杨恒)
|
61 |
[](https://pepy.tech/project/pyabsa)
|