Spaces:
Sleeping
Sleeping
Upload streamlit_app.py
Browse files- src/streamlit_app.py +6 -2
src/streamlit_app.py
CHANGED
|
@@ -271,7 +271,11 @@ for row in rows:
|
|
| 271 |
elif data_source == "Rule 34":
|
| 272 |
link = f"https://rule34.xxx/index.php?page=post&s=view&id={post_id}"
|
| 273 |
|
| 274 |
-
st.image(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 275 |
|
| 276 |
def histogram_slider(df, column1):
|
| 277 |
if df.empty:
|
|
@@ -303,7 +307,7 @@ def histogram_slider(df, column1):
|
|
| 303 |
margin=dict(l=0, r=0, t=0, b=0),
|
| 304 |
legend=dict(orientation='h', yanchor='bottom', y=-0.4, xanchor='center', x=0.5),
|
| 305 |
)
|
| 306 |
-
st.sidebar.plotly_chart(fig,
|
| 307 |
|
| 308 |
del sample_data, hist1, bin_edges1
|
| 309 |
gc.collect()
|
|
|
|
| 271 |
elif data_source == "Rule 34":
|
| 272 |
link = f"https://rule34.xxx/index.php?page=post&s=view&id={post_id}"
|
| 273 |
|
| 274 |
+
st.image(
|
| 275 |
+
row_data['large_file_url'],
|
| 276 |
+
caption=f"ID: {row_data.name}, Preference Score: {row_data['preference_score']:.2f}\n{link}",
|
| 277 |
+
width='stretch'
|
| 278 |
+
)
|
| 279 |
|
| 280 |
def histogram_slider(df, column1):
|
| 281 |
if df.empty:
|
|
|
|
| 307 |
margin=dict(l=0, r=0, t=0, b=0),
|
| 308 |
legend=dict(orientation='h', yanchor='bottom', y=-0.4, xanchor='center', x=0.5),
|
| 309 |
)
|
| 310 |
+
st.sidebar.plotly_chart(fig, width='stretch', config={'displayModeBar': False})
|
| 311 |
|
| 312 |
del sample_data, hist1, bin_edges1
|
| 313 |
gc.collect()
|