Spaces:
Sleeping
Sleeping
Commit
·
e47de08
1
Parent(s):
9823a9e
absa
Browse files
app.py
CHANGED
@@ -7,20 +7,6 @@ def run_absa(review, model_choice):
|
|
7 |
except Exception as e:
|
8 |
return {"error": str(e)}
|
9 |
|
10 |
-
demo = gr.Interface(
|
11 |
-
fn=run_absa,
|
12 |
-
inputs=[
|
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, ) to extract aspects, opinions, and sentiment using LoRA adapters"
|
19 |
-
)
|
20 |
-
|
21 |
-
if __name__ == "__main__":
|
22 |
-
demo.launch()
|
23 |
-
|
24 |
demo = gr.Interface(
|
25 |
fn=run_absa,
|
26 |
inputs=[
|
|
|
7 |
except Exception as e:
|
8 |
return {"error": str(e)}
|
9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
demo = gr.Interface(
|
11 |
fn=run_absa,
|
12 |
inputs=[
|