Spaces:
Runtime error
Runtime error
Update app.py
Browse files378 unmodified lines379380381382383384385386387388389390383384385386387388391392393394395396397378 unmodified lines }) sent_df = pd.DataFrame(sent_data) # Fixed the dataframe display with proper parenthesis closure styled_df = sent_df.style.background_gradient( cmap='RdYlGn', subset=['VADER', 'BERT', 'TextBlob', 'Average'], vmin=-1, vmax=1 ) st.dataframe( sent_df.style.background_gradient( cmap='RdYlGn', subset=['VADER', 'BERT', 'TextBlob', 'Average'], vmin=-1, vmax=1 ), styled_df, use_container_width=True, height=min(400, 35 * len(sent_df)) except Exception as e: st.error(f"Sentence analysis error: {str(e)}")
app.py+10-6