mbudisic commited on
Commit
c97ecaf
Β·
1 Parent(s): b30f052

fix: Update link text in format_url_reference for clarity

Browse files

- Changed link text from "click here" to "go to website" in the `format_url_reference` function to improve user understanding of the action.
- Ensured consistency in messaging by updating both the sidebar and main message content.

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -151,13 +151,13 @@ async def format_url_reference(url_ref):
151
  name=f"{url_ref['title']}",
152
  display="side", # Show in the sidebar
153
  url=payload.json()["data"]["screenshot"]["url"],
154
- content=f"πŸ”— {url_ref['title']} [(click here))]({url_ref['url']})",
155
  )
156
  except Exception as e:
157
  logging.error(f"Error fetching screenshot: {e}")
158
 
159
  return cl.Message(
160
- content=f"πŸ”— {url_ref['title']} [(click here)]({url_ref['url']})",
161
  elements=([screenshot] if screenshot else []),
162
  )
163
 
 
151
  name=f"{url_ref['title']}",
152
  display="side", # Show in the sidebar
153
  url=payload.json()["data"]["screenshot"]["url"],
154
+ content=f"πŸ”— {url_ref['title']} [(go to website))]({url_ref['url']})",
155
  )
156
  except Exception as e:
157
  logging.error(f"Error fetching screenshot: {e}")
158
 
159
  return cl.Message(
160
+ content=f"πŸ”— {url_ref['title']} [(go to website)]({url_ref['url']})",
161
  elements=([screenshot] if screenshot else []),
162
  )
163