Markdown file not showing up in UI
Using version 1.1.300. Default chainlit.md file was created on application start. Still getting "Translated markdown file for en-US not found. Defaulting to chainlit.md." on each re-run. Yet no markdown text showing up in UI.
Thoughts?
dealing with the same issue, the entire UI is not showing up. any suggestions?
I also have the same issue, did anyone find a fix?
Is this related to #1073?
Yes
How? =)
The previous behaviour was you add text in the chainlit.md and it appears on the welcome screen.
This behaviour has now changed so the chainlit.md is now hidden away in the readme and now there is no way to make a welcome screen.
Both threads are about this lack of ability to make a welcome screen without redesigning the whole ui like https://help.chainlit.io/
Has anyone found a fix/workaround?
@jamesheavey is right. As of 1.2.0 the welcome message appears in a readme in the sidebar. Any updates?
dealing with the same issue, i'm trying to understand where in the app.py script is chainlit pulling the right config values to build the ui. any ideas are more than welcome
@jamesheavey is right. As of 1.2.0 the welcome message appears in a readme in the sidebar. Any updates?
only solution for me: moving back to version chainlit==1.0.401
My solution: I've added the welcome page as a startup message by adding the following to main()
from pathlib import Path
import chainlit as cl
@cl.on_chat_start
async def main():
# add startup message
language = cl.user_session.get("languages").split(",")[0]
root_path = Path(__file__).parent
translated_chainlit_md_path = root_path / f"chainlit_{language}.md"
default_chainlit_md_path = root_path / "chainlit.md"
if translated_chainlit_md_path.exists():
message = translated_chainlit_md_path.read_text()
else:
message = default_chainlit_md_path.read_text()
startup_message = cl.Message(content=message)
await startup_message.send()
This issue is stale because it has been open for 14 days with no activity.
This issue was closed because it has been inactive for 7 days since being marked as stale.