Spaces:
Sleeping
Sleeping
Commit ·
e2a84d3
1
Parent(s): 6daaf61
4.14+ rollback start4
Browse files
app.py
CHANGED
|
@@ -1440,7 +1440,7 @@ def create_output_file(df, uploaded_file):
|
|
| 1440 |
entity_stats['Негативные'] = df[df['Sentiment'] == 'Negative'].groupby('Объект').size().fillna(0).astype(int)
|
| 1441 |
entity_stats['Позитивные'] = df[df['Sentiment'] == 'Positive'].groupby('Объект').size().fillna(0).astype(int)
|
| 1442 |
|
| 1443 |
-
for idx, (entity, row) in enumerate(entity_stats.iterrows()):
|
| 1444 |
ws.cell(row=idx, column=5, value=row['Объект'])
|
| 1445 |
ws.cell(row=idx, column=6, value=row['Всего'])
|
| 1446 |
ws.cell(row=idx, column=7, value=row['Негативные'])
|
|
@@ -1504,7 +1504,7 @@ def main():
|
|
| 1504 |
st.set_page_config(layout="wide")
|
| 1505 |
|
| 1506 |
with st.sidebar:
|
| 1507 |
-
st.title("::: AI-анализ мониторинга новостей (v.4.14):::")
|
| 1508 |
st.subheader("по материалам СКАН-ИНТЕРФАКС")
|
| 1509 |
|
| 1510 |
model_choice = st.radio(
|
|
|
|
| 1440 |
entity_stats['Негативные'] = df[df['Sentiment'] == 'Negative'].groupby('Объект').size().fillna(0).astype(int)
|
| 1441 |
entity_stats['Позитивные'] = df[df['Sentiment'] == 'Positive'].groupby('Объект').size().fillna(0).astype(int)
|
| 1442 |
|
| 1443 |
+
for idx, (entity, row) in enumerate(entity_stats.iterrows(), start=4):
|
| 1444 |
ws.cell(row=idx, column=5, value=row['Объект'])
|
| 1445 |
ws.cell(row=idx, column=6, value=row['Всего'])
|
| 1446 |
ws.cell(row=idx, column=7, value=row['Негативные'])
|
|
|
|
| 1504 |
st.set_page_config(layout="wide")
|
| 1505 |
|
| 1506 |
with st.sidebar:
|
| 1507 |
+
st.title("::: AI-анализ мониторинга новостей (v.4.14+):::")
|
| 1508 |
st.subheader("по материалам СКАН-ИНТЕРФАКС")
|
| 1509 |
|
| 1510 |
model_choice = st.radio(
|