Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -45,8 +45,7 @@ def perform_asde_inference(text, dataset, model_id):
|
|
45 |
true_sentiment = selected_df['actual_sentiments']
|
46 |
true_doubles = pd.DataFrame(list(map(list, zip(ast.literal_eval(true_aspect), ast.literal_eval(true_sentiment)))),columns=['Aspect','Sentiment'])
|
47 |
else:
|
48 |
-
|
49 |
-
true_doubles = ""
|
50 |
|
51 |
bos_instruction = """Definition: The output will be the aspects (both implicit and explicit) and the aspects sentiment polarity. In cases where there are no aspects the output should be noaspectterm:none.
|
52 |
Positive example 1-
|
|
|
45 |
true_sentiment = selected_df['actual_sentiments']
|
46 |
true_doubles = pd.DataFrame(list(map(list, zip(ast.literal_eval(true_aspect), ast.literal_eval(true_sentiment)))),columns=['Aspect','Sentiment'])
|
47 |
else:
|
48 |
+
true_doubles = pd.DataFrame([["NA","NA"]],columns=['Aspect','Sentiment'])
|
|
|
49 |
|
50 |
bos_instruction = """Definition: The output will be the aspects (both implicit and explicit) and the aspects sentiment polarity. In cases where there are no aspects the output should be noaspectterm:none.
|
51 |
Positive example 1-
|