Spaces:
Sleeping
Sleeping
Commit ·
1e0ed97
1
Parent(s): 5137985
progress more 60
Browse files
app.py
CHANGED
|
@@ -175,7 +175,7 @@ def process_file_with_llm(df, llm):
|
|
| 175 |
|
| 176 |
for index, row in df.iterrows():
|
| 177 |
if any(row[model] in ['Negative', 'Positive'] for model in ['FinBERT', 'RoBERTa', 'FinBERT-Tone']):
|
| 178 |
-
impact, reasoning = estimate_impact(llm, row['Translated']) # Use translated text
|
| 179 |
df.at[index, 'LLM_Impact'] = impact
|
| 180 |
df.at[index, 'LLM_Reasoning'] = reasoning
|
| 181 |
# Display each LLM response
|
|
@@ -504,7 +504,7 @@ def create_output_file(df, uploaded_file, analysis_df):
|
|
| 504 |
return output
|
| 505 |
|
| 506 |
def main():
|
| 507 |
-
st.title("... приступим к анализу... версия
|
| 508 |
|
| 509 |
# Initialize session state
|
| 510 |
if 'processed_df' not in st.session_state:
|
|
|
|
| 175 |
|
| 176 |
for index, row in df.iterrows():
|
| 177 |
if any(row[model] in ['Negative', 'Positive'] for model in ['FinBERT', 'RoBERTa', 'FinBERT-Tone']):
|
| 178 |
+
impact, reasoning = estimate_impact(llm, row['Translated'], row['Объект']) # Use translated text
|
| 179 |
df.at[index, 'LLM_Impact'] = impact
|
| 180 |
df.at[index, 'LLM_Reasoning'] = reasoning
|
| 181 |
# Display each LLM response
|
|
|
|
| 504 |
return output
|
| 505 |
|
| 506 |
def main():
|
| 507 |
+
st.title("... приступим к анализу... версия 60")
|
| 508 |
|
| 509 |
# Initialize session state
|
| 510 |
if 'processed_df' not in st.session_state:
|