asmashayea commited on
Commit
fe7c96e
·
1 Parent(s): c7d107e
Files changed (2) hide show
  1. app.py +2 -2
  2. requirements.txt +2 -1
app.py CHANGED
@@ -13,9 +13,9 @@ demo = gr.Interface(
13
  gr.Textbox(label="Arabic Review"),
14
  gr.Dropdown(choices=list(MODEL_OPTIONS.keys()), label="Choose Model", value="Araberta")
15
  ],
16
- outputs=gr.JSON(label="Extracted Aspect-Sentiment-Opinion Triplets"),
17
  title="Arabic ABSA (Aspect-Based Sentiment Analysis)",
18
- description="Choose a model (Araberta, mT5, mBART, GPT3.5, GPT4o) to extract aspects and sentiment"
19
  )
20
 
21
  if __name__ == "__main__":
 
13
  gr.Textbox(label="Arabic Review"),
14
  gr.Dropdown(choices=list(MODEL_OPTIONS.keys()), label="Choose Model", value="Araberta")
15
  ],
16
+ outputs=gr.JSON(label="Extracted Aspects and Sentiment"),
17
  title="Arabic ABSA (Aspect-Based Sentiment Analysis)",
18
+ description="Write an Arabic review then choose a model to extract aspects and sentiment"
19
  )
20
 
21
  if __name__ == "__main__":
requirements.txt CHANGED
@@ -6,4 +6,5 @@ torch
6
  torchvision
7
  torchaudio
8
  pytorch-crf
9
- sentencepiece
 
 
6
  torchvision
7
  torchaudio
8
  pytorch-crf
9
+ sentencepiece
10
+ openai