Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

demo_utils.launch_streamlit unable to work on local install of `conversant`

See original GitHub issue

Issue Description

The files of conversant that are installed by pip are only from sandbox-conversant-lib/conversant.

demo_utils.launch_streamlit requires app/ to be available.

Code to replicate: pip install conversant

co = cohere.Client("API KEY")
shakespeare_config = {
    "preamble": "Below is a conversation between Shakespeare and a Literature Student.",
    "example_separator": "<CONVERSATION>\n",
    "headers": {
        "user": "Literature Student",
        "bot": "William Shakespeare",
    "examples": [
                "user": "Who are you?",
                "bot": "Mine own nameth is Shakespeare, and I speaketh in riddles.",
shakespeare_bot = PromptChatbot(


Usage: streamlit run [OPTIONS] TARGET [ARGS]...
Try 'streamlit run --help' for help.

Error: Invalid value: File does not exist: /app/

One possible solution is to move app/ into conversant (with a rename), such that is available in the pip installed version of conversant as conversant/demo/

Issue Analytics

  • State:closed
  • Created 4 months ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

eddotmancommented, Nov 3, 2022

Yes good call! I’m running behind on PR reviews so maybe we remove the example now-ish and add it back in next week alongside the fix

yicherncommented, Nov 7, 2022

Streamlit app needs to be pointed to conversant/demo/

Read more comments on GitHub >

github_iconTop Results From Across the Web

App is not loading when running remotely - Streamlit Docs
Symptom #1: The app never loads · Try port 80: Some hosts expose port 80 by default. To set Streamlit to use that...
Read more >
Getting an error "'streamlit' is not recognized as an internal or ...
Hi,. I was trying to build a streamlit app. Performed the following steps: Activated my own environment using Ananconda prompt; Installed ...
Read more >
Unable to install streamlit with conda
I use conda, and pip install streamlit gives me this: ERROR: pydeck 0.3.0 ... page on my browser, but a click on demos...
Read more >
Note: installation issues with Python 3.9 and Streamlit
Hi everyone - We're starting to selectively see reports about using Python 3.9 with Streamlit with pip, with compiler errors like the ...
Read more >
Cant launch my app - Using Streamlit
Hi I'm new to coding and have just read about stremlit which seems awesome, I have been able to launch the streamlit hello...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found