Spaces:
Sleeping
Sleeping
Commit ·
80d50c2
1
Parent(s): 759a882
progress more 39+
Browse files
app.py
CHANGED
|
@@ -30,7 +30,7 @@ def create_analysis_data(df):
|
|
| 30 |
for _, row in df.iterrows():
|
| 31 |
if any(row[model] == 'Negative' for model in ['FinBERT', 'RoBERTa', 'FinBERT-Tone']):
|
| 32 |
analysis_data.append([row['Объект'], row['Заголовок'], 'РИСК УБЫТКА', '', row['Выдержки из текста']])
|
| 33 |
-
return pd.DataFrame(analysis_data, columns=['Объект', '
|
| 34 |
|
| 35 |
# Function for lemmatizing Russian text
|
| 36 |
def lemmatize_text(text):
|
|
@@ -243,7 +243,7 @@ def create_output_file(df, uploaded_file, analysis_df):
|
|
| 243 |
return output
|
| 244 |
|
| 245 |
def main():
|
| 246 |
-
st.title("... приступим к анализу... версия
|
| 247 |
|
| 248 |
uploaded_file = st.file_uploader("Выбирайте Excel-файл", type="xlsx")
|
| 249 |
|
|
|
|
| 30 |
for _, row in df.iterrows():
|
| 31 |
if any(row[model] == 'Negative' for model in ['FinBERT', 'RoBERTa', 'FinBERT-Tone']):
|
| 32 |
analysis_data.append([row['Объект'], row['Заголовок'], 'РИСК УБЫТКА', '', row['Выдержки из текста']])
|
| 33 |
+
return pd.DataFrame(analysis_data, columns=['Объект', 'Заголовок', 'Признак', 'Материальность', 'Текст сообщения'])
|
| 34 |
|
| 35 |
# Function for lemmatizing Russian text
|
| 36 |
def lemmatize_text(text):
|
|
|
|
| 243 |
return output
|
| 244 |
|
| 245 |
def main():
|
| 246 |
+
st.title("... приступим к анализу... версия 39+")
|
| 247 |
|
| 248 |
uploaded_file = st.file_uploader("Выбирайте Excel-файл", type="xlsx")
|
| 249 |
|