mlabonne commited on
Commit
37308a4
1 Parent(s): fd45a63

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -82,7 +82,7 @@ def create_bar_chart(df, category):
82
  )
83
 
84
  # Adjust the height of the chart based on the number of rows in the DataFrame
85
- st.plotly_chart(fig, use_container_width=True, height=int(len(df) * 34.7))
86
 
87
  # Example usage:
88
  # create_bar_chart(your_dataframe, 'Your_Category')
@@ -158,7 +158,7 @@ def main():
158
  "URL": st.column_config.LinkColumn("URL"),
159
  },
160
  hide_index=True,
161
- height=len(df) * 37,
162
  )
163
 
164
  # Add a button to export data to CSV
 
82
  )
83
 
84
  # Adjust the height of the chart based on the number of rows in the DataFrame
85
+ st.plotly_chart(fig, use_container_width=True, height=35)
86
 
87
  # Example usage:
88
  # create_bar_chart(your_dataframe, 'Your_Category')
 
158
  "URL": st.column_config.LinkColumn("URL"),
159
  },
160
  hide_index=True,
161
+ height=int(len(df) * 36.5),
162
  )
163
 
164
  # Add a button to export data to CSV