Streamlit Component, for a Chatbot UI

Overview

st-chat

Streamlit Component, for a Chat-bot UI, example app

authors - @yashppawar & @YashVardhan-AI

Installation

Install streamlit-chat with pip

pip install streamlit-chat 

usage, import the message function from streamlit_chat

import streamlit as st
from streamlit_chat import message

message("My message") 
message("Hello bot!", is_user=True)  # align's the message to the right
You might also like...
🪄 Auto-generate Streamlit UI from Pydantic Models and Dataclasses.
🪄 Auto-generate Streamlit UI from Pydantic Models and Dataclasses.

Streamlit Pydantic Auto-generate Streamlit UI elements from Pydantic models. Getting Started • Documentation • Support • Report a Bug • Contribution •

Addons like multipages for streamlit webapp
Addons like multipages for streamlit webapp

streamlit_pages Installation $ pip install streamlit-pages Features Adding multiple pages to streamlit Sharing specific pages Usage import streamlit

Hydralit package is a wrapping and template project to combine multiple independant Streamlit applications into a multi-page application.
Hydralit package is a wrapping and template project to combine multiple independant Streamlit applications into a multi-page application.

Hydralit The Hydralit package is a wrapping and template project to combine multiple independant (or somewhat dependant) Streamlit applications into a

OpenSea NFT API App using Python and Streamlit

opensea-nft-api-tutorial OpenSea NFT API App using Python and Streamlit Tutorial Video Walkthrough https://www.youtube.com/watch?v=49SupvcFC1M Instruc

Repo to demo translating colab/jupyter notebook to streamlit webapp

Repo to demo translating colab/jupyter notebook to streamlit webapp

Write Streamlit apps using Notion! (Prototype)

Streamlit + Notion test app Write Streamlit apps using Notion! ☠️ IMPORTANT: This is just a little prototype I made to play with some ideas. Not meant

A streamlit app for exploring image search results from HuggingPics

title emoji colorFrom colorTo sdk app_file pinned huggingpics-explorer 🤗 blue red streamlit app.py false huggingpics-explorer A streamlit app for exp

A simple streamlit webapp with multiple functionality

A simple streamlit webapp with multiple functionality

📽 Streamlit application powered by a PyScaffold project setup

streamlit-demo Streamlit application powered by a PyScaffold project setup. Work in progress: The idea of this repo is to demonstrate how to package a

Comments
  • How to get

    How to get "st-chat/examples/chatbot.py" running ?

    Would like to have examples/chatbot.pyrunning locally on computer

    Running streamlit run chatbot.py in terminals leads to --

    KeyError: 'generated_text'
    Traceback:
    File "/opt/anaconda3/envs/st-chat/lib/python3.8/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 562, in _run_script
        exec(code, module.__dict__)
    File "/Users/sivanchu/Documents/GitHub/st-chat/examples/chatbot.py", line 43, in <module>
        st.session_state.generated.append(output["generated_text"])
    

    Full sequence of code --

    conda create -y -n st-chat  python=3.8 
    conda activate st-chat
    pip install streamlit-chat 
    streamlit run  examples/chatbot.py
    
    opened by sergey-ivanchuk 1
  • feat(frontend): Added multiple features

    feat(frontend): Added multiple features

    Now the users can add multiple messages in one message( call. In terms of performance, this is better because the user does not have to create a new iframe every time he wants to add a new message. Also, because of it, it now holds a new design: image

    The user can also add images to the message like so: image

    The function can now be called like that:

    message([
        "First message",
        "http://myimage.com",
        "Last message"
    ], is_picture=[False, True, False])
    
    opened by gamcoh 0
  • Way to refresh the chat?

    Way to refresh the chat?

    Really love the interface and was wondering if there is a way to clear the chat and refresh the page without the last message being submitted again in the demo file you created? I would like a button that can completely clear the chat and start again.

    Thanks!

    opened by tim-morriss 0
  • Scrol bar

    Scrol bar

    Hello!

    I really enjoyed using your package, it made the display of text so much fun!

    Just wondering, do you have plans to add a scroll bar to long conversations?

    opened by gabriellajg 2
Releases(v0.0.2)
  • v0.0.2(Dec 28, 2021)

    v0.0.2 released of streamlit-chat https://pypi.org/project/streamlit-chat/0.0.2.1/ Changes - Code Cleanup - fix python version dependency - Change default avatar of user to pixel-art-neutral Now there is an example app demonstrating a very simple use of the component.

    Source code(tar.gz)
    Source code(zip)
  • v0.0.1(Dec 27, 2021)

    a streamlit component for chatbot UI

    now available on PyPI https://pypi.org/project/streamlit-chat/0.0.1/ to install, pip install streamlit-chat

    Source code(tar.gz)
    Source code(zip)
Owner
Yash AI
Collaborative projects of @yashppawar and @YashVardhan-AI
Yash AI
Custom component to calculate estimated power consumption of lights and other appliances

Custom component to calculate estimated power consumption of lights and other appliances. Provides easy configuration to get virtual power consumption sensors in Home Assistant for all your devices which don't have a build in power meter.

Bram Gerritsen 552 Dec 28, 2022
Irrigation Component V4 providing support for a custom card

Irrigation Component V4 This release sees the delivery of a custom card https://github.com/petergridge/irrigation_card to render the program options s

null 12 Oct 28, 2022
JLC2KICAD_lib is a python script that generate a component library for KiCad from the JLCPCB/easyEDA library.

JLC2KiCad_lib is a python script that generate a component library (schematic, footprint and 3D model) for KiCad from the JLCPCB/easyEDA library. This script requires Python 3.6 or higher.

Nicolas Toussaint 73 Dec 26, 2022
MuMMI Core is the underlying infrastructure and generalizable component of the MuMMI framework

MuMMI Core is the underlying infrastructure and generalizable component of the MuMMI framework, which facilitates the coordination of massively parallel multiscale simulations.

null 4 Aug 17, 2022
An optional component handler for hikari, inspired by discord.py's views.

hikari-miru An optional component handler for hikari, inspired by discord.py's views.

null 43 Dec 26, 2022
Google Fit Sensor Component

Google Fit Sensor Component

Ivan Vojtko 21 Dec 20, 2022
It is a personal assistant chatbot, capable to perform many tasks same as Google Assistant plus more extra features...

PersonalAssistant It is an Personal Assistant, capable to perform many tasks with some unique features, that you haven'e seen yet.... Features / Tasks

Roshan Kumar 95 Dec 21, 2022
A simple chatbot that I made for school project

Chatbot: Python A simple chatbot that I made for school Project. Tho this chatbot is dumb sometimes, but it's not too bad lol. Check it Out! FAQ How t

Prashant 2 Nov 13, 2021
Template (v0) do Sistema Chatbot - atividade síncrona - INE5404

ine-5404-sistema-chatbot-template Template (v0) do Sistema Chatbot - atividade síncrona - INE5404 Veja abaixo um exemplo de funcionamento do sistema:

null 0 Dec 7, 2021
Headless chatbot that detects spam and posts links to it to chatrooms for quick deletion.

SmokeDetector Headless chatbot that detects spam and posts it to chatrooms. Uses ChatExchange, takes questions from the Stack Exchange realtime tab, a

Charcoal 421 Dec 21, 2022