change use_container_width to width
Browse files- src/streamlit_app.py +2 -2
src/streamlit_app.py
CHANGED
|
@@ -119,7 +119,7 @@ if submitted:
|
|
| 119 |
display_df["Text"] = display_df["Text"].apply(
|
| 120 |
lambda t: t if len(t) <= 200 else f"{t[:197]}..."
|
| 121 |
)
|
| 122 |
-
st.dataframe(display_df,
|
| 123 |
|
| 124 |
chart_df = (
|
| 125 |
results_df.reset_index()
|
|
@@ -138,7 +138,7 @@ if submitted:
|
|
| 138 |
)
|
| 139 |
.properties(height=320)
|
| 140 |
)
|
| 141 |
-
st.altair_chart(chart,
|
| 142 |
|
| 143 |
st.info(
|
| 144 |
"Weights download happens once per session (cached). Set the `HF_TOKEN` environment variable "
|
|
|
|
| 119 |
display_df["Text"] = display_df["Text"].apply(
|
| 120 |
lambda t: t if len(t) <= 200 else f"{t[:197]}..."
|
| 121 |
)
|
| 122 |
+
st.dataframe(display_df, width="stretch")
|
| 123 |
|
| 124 |
chart_df = (
|
| 125 |
results_df.reset_index()
|
|
|
|
| 138 |
)
|
| 139 |
.properties(height=320)
|
| 140 |
)
|
| 141 |
+
st.altair_chart(chart, width="stretch")
|
| 142 |
|
| 143 |
st.info(
|
| 144 |
"Weights download happens once per session (cached). Set the `HF_TOKEN` environment variable "
|