(text)
| 179 | |
| 180 | |
| 181 | def create_suggestion_button(text): |
| 182 | return f""" |
| 183 | <button |
| 184 | onclick="document.getElementsByTagName('textarea')[0].value='{text}'; |
| 185 | document.getElementsByTagName('textarea')[0].focus();" |
| 186 | style=" |
| 187 | background: transparent; |
| 188 | border: 1px solid #81E831; |
| 189 | color: #81E831; |
| 190 | padding: 8px 16px; |
| 191 | margin: 5px; |
| 192 | border-radius: 20px; |
| 193 | cursor: pointer; |
| 194 | font-size: 0.9em; |
| 195 | transition: all 0.3s ease; |
| 196 | " |
| 197 | onmouseover="this.style.background='#81E831'; this.style.color='white';" |
| 198 | onmouseout="this.style.background='transparent'; this.style.color='#81E831';" |
| 199 | > |
| 200 | {text} |
| 201 | </button> |
| 202 | """ |
| 203 | |
| 204 | def render_suggestions(): |
| 205 | st.markdown("### Try asking about:") |
nothing calls this directly
no outgoing calls
no test coverage detected