Spaces:
Sleeping
Sleeping
seriouspark
commited on
Commit
·
e661333
1
Parent(s):
c638b7d
Update app.py
Browse files
app.py
CHANGED
@@ -206,7 +206,7 @@ def all_process(origin_essay):
|
|
206 |
#cls_model = AutoModelForSequenceClassification.from_pretrained('bert-base-multilingual-cased', num_labels = 6)
|
207 |
|
208 |
final_result, file_name_dt = get_word_emotion_pair(cls_model, essay_sent)
|
209 |
-
all_result,
|
210 |
|
211 |
summary_result = pd.concat([adj_result, noun_result]).fillna(0).sort_values(by = 'total', ascending = False).fillna(0).reset_index()[:30]
|
212 |
with open(f'./result/{file_name_dt}/summary.json','w') as f:
|
|
|
206 |
#cls_model = AutoModelForSequenceClassification.from_pretrained('bert-base-multilingual-cased', num_labels = 6)
|
207 |
|
208 |
final_result, file_name_dt = get_word_emotion_pair(cls_model, essay_sent)
|
209 |
+
all_result, adj_result, noun_result, essay_summary, file_made_dt_str = get_essay_base_analysis(file_name_dt)
|
210 |
|
211 |
summary_result = pd.concat([adj_result, noun_result]).fillna(0).sort_values(by = 'total', ascending = False).fillna(0).reset_index()[:30]
|
212 |
with open(f'./result/{file_name_dt}/summary.json','w') as f:
|