chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

Markdown file not showing up in UI

Open dangelotom opened this issue 1 year ago • 11 comments

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?

dangelotom avatar Jul 24 '24 12:07 dangelotom

dealing with the same issue, the entire UI is not showing up. any suggestions? image

bsavocad avatar Aug 08 '24 12:08 bsavocad

I also have the same issue, did anyone find a fix?

jamesheavey avatar Aug 21 '24 14:08 jamesheavey

Is this related to #1073?

dokterbob avatar Aug 21 '24 19:08 dokterbob

Yes

jamesheavey avatar Aug 21 '24 19:08 jamesheavey

How? =)

dokterbob avatar Aug 21 '24 19:08 dokterbob

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/

jamesheavey avatar Aug 21 '24 21:08 jamesheavey

Has anyone found a fix/workaround?

chadhat avatar Sep 26 '24 10:09 chadhat

@jamesheavey is right. As of 1.2.0 the welcome message appears in a readme in the sidebar. Any updates?

dangelotom avatar Sep 26 '24 19:09 dangelotom

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 image

bsavocad avatar Sep 27 '24 18:09 bsavocad

@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

bsavocad avatar Sep 27 '24 19:09 bsavocad

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()

steflommen avatar Oct 02 '24 21:10 steflommen

This issue is stale because it has been open for 14 days with no activity.

github-actions[bot] avatar Jul 23 '25 02:07 github-actions[bot]

This issue was closed because it has been inactive for 7 days since being marked as stale.

github-actions[bot] avatar Jul 30 '25 02:07 github-actions[bot]