Spaces:
Sleeping
Sleeping
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.
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']} [(
|
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']} [(
|
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 |
|