Update app.py
Browse files
app.py
CHANGED
@@ -94,9 +94,10 @@ if user_type == 'New User':
|
|
94 |
|
95 |
# Hyperlink the 'click to buy' text for the link column
|
96 |
recommendations_table['link'] = recommendations_table['link'].apply(lambda x: f"[click to buy]({x})")
|
|
|
97 |
recommendations_table = recommendations_table.reset_index(drop=True)
|
98 |
-
|
99 |
-
st.
|
100 |
|
101 |
# User input for existing users
|
102 |
elif user_type == 'Existing User':
|
@@ -138,8 +139,9 @@ elif user_type == 'Existing User':
|
|
138 |
|
139 |
# Hyperlink the 'click to buy' text for the link column
|
140 |
recommendations_table['link'] = recommendations_table['link'].apply(lambda x: f"[click to buy]({x})")
|
|
|
141 |
recommendations_table = recommendations_table.reset_index(drop=True)
|
142 |
|
143 |
-
st.
|
144 |
else:
|
145 |
st.warning("Please enter a valid user ID.")
|
|
|
94 |
|
95 |
# Hyperlink the 'click to buy' text for the link column
|
96 |
recommendations_table['link'] = recommendations_table['link'].apply(lambda x: f"[click to buy]({x})")
|
97 |
+
|
98 |
recommendations_table = recommendations_table.reset_index(drop=True)
|
99 |
+
|
100 |
+
st.dataframe(recommendations_table.style.format({'link': lambda x: x}), unsafe_allow_html=True)
|
101 |
|
102 |
# User input for existing users
|
103 |
elif user_type == 'Existing User':
|
|
|
139 |
|
140 |
# Hyperlink the 'click to buy' text for the link column
|
141 |
recommendations_table['link'] = recommendations_table['link'].apply(lambda x: f"[click to buy]({x})")
|
142 |
+
|
143 |
recommendations_table = recommendations_table.reset_index(drop=True)
|
144 |
|
145 |
+
st.dataframe(recommendations_table.style.format({'link': lambda x: x}), unsafe_allow_html=True)
|
146 |
else:
|
147 |
st.warning("Please enter a valid user ID.")
|