Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed avatar api url #22

Merged
merged 3 commits into from
Mar 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Binary file removed dist/streamlit-chat-0.0.2.1.tar.gz
Binary file not shown.
Binary file added dist/streamlit-chat-0.0.2.2.tar.gz
Binary file not shown.
Binary file removed dist/streamlit_chat-0.0.2.1-py3-none-any.whl
Binary file not shown.
Binary file added dist/streamlit_chat-0.0.2.2-py3-none-any.whl
Binary file not shown.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setuptools.setup(
name="streamlit-chat",
version="0.0.2.1",
version="0.0.2.2",
author="Yash Pravin Pawar, Yash Vardhan Kapil",
author_email="yashpawarp@gmail.com, workid169@gmail.com",
description="A streamlit component, to make chatbots",
Expand Down
16 changes: 8 additions & 8 deletions streamlit_chat/frontend/build/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"files": {
"main.js": "./static/js/main.17c4e20f.chunk.js",
"main.js.map": "./static/js/main.17c4e20f.chunk.js.map",
"main.js": "./static/js/main.94ae90dc.chunk.js",
"main.js.map": "./static/js/main.94ae90dc.chunk.js.map",
"runtime-main.js": "./static/js/runtime-main.11ec9aca.js",
"runtime-main.js.map": "./static/js/runtime-main.11ec9aca.js.map",
"static/js/2.b733ce1f.chunk.js": "./static/js/2.b733ce1f.chunk.js",
"static/js/2.b733ce1f.chunk.js.map": "./static/js/2.b733ce1f.chunk.js.map",
"static/js/2.e150c163.chunk.js": "./static/js/2.e150c163.chunk.js",
"static/js/2.e150c163.chunk.js.map": "./static/js/2.e150c163.chunk.js.map",
"index.html": "./index.html",
"precache-manifest.7ae22b440151a57e659560953381ff34.js": "./precache-manifest.7ae22b440151a57e659560953381ff34.js",
"precache-manifest.ac9f52323ee9d6c853f343a1b660b5ab.js": "./precache-manifest.ac9f52323ee9d6c853f343a1b660b5ab.js",
"service-worker.js": "./service-worker.js",
"static/js/2.b733ce1f.chunk.js.LICENSE.txt": "./static/js/2.b733ce1f.chunk.js.LICENSE.txt"
"static/js/2.e150c163.chunk.js.LICENSE.txt": "./static/js/2.e150c163.chunk.js.LICENSE.txt"
},
"entrypoints": [
"static/js/runtime-main.11ec9aca.js",
"static/js/2.b733ce1f.chunk.js",
"static/js/main.17c4e20f.chunk.js"
"static/js/2.e150c163.chunk.js",
"static/js/main.94ae90dc.chunk.js"
]
}
2 changes: 1 addition & 1 deletion streamlit_chat/frontend/build/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><title>Streamlit Component</title><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Streamlit Component"/><link rel="stylesheet" href="bootstrap.min.css"/></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function t(t){for(var n,l,a=t[0],p=t[1],i=t[2],c=0,s=[];c<a.length;c++)l=a[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in p)Object.prototype.hasOwnProperty.call(p,n)&&(e[n]=p[n]);for(f&&f(t);s.length;)s.shift()();return u.push.apply(u,i||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,a=1;a<r.length;a++){var p=r[a];0!==o[p]&&(n=!1)}n&&(u.splice(t--,1),e=l(l.s=r[0]))}return e}var n={},o={1:0},u=[];function l(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,l),r.l=!0,r.exports}l.m=e,l.c=n,l.d=function(e,t,r){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(l.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)l.d(r,n,function(t){return e[t]}.bind(null,n));return r},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="./";var a=this.webpackJsonpstreamlit_component_template=this.webpackJsonpstreamlit_component_template||[],p=a.push.bind(a);a.push=t,a=a.slice();for(var i=0;i<a.length;i++)t(a[i]);var f=p;r()}([])</script><script src="./static/js/2.b733ce1f.chunk.js"></script><script src="./static/js/main.17c4e20f.chunk.js"></script></body></html>
<!doctype html><html lang="en"><head><title>Streamlit Component</title><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Streamlit Component"/><link rel="stylesheet" href="bootstrap.min.css"/></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script>!function(e){function t(t){for(var n,l,a=t[0],p=t[1],i=t[2],c=0,s=[];c<a.length;c++)l=a[c],Object.prototype.hasOwnProperty.call(o,l)&&o[l]&&s.push(o[l][0]),o[l]=0;for(n in p)Object.prototype.hasOwnProperty.call(p,n)&&(e[n]=p[n]);for(f&&f(t);s.length;)s.shift()();return u.push.apply(u,i||[]),r()}function r(){for(var e,t=0;t<u.length;t++){for(var r=u[t],n=!0,a=1;a<r.length;a++){var p=r[a];0!==o[p]&&(n=!1)}n&&(u.splice(t--,1),e=l(l.s=r[0]))}return e}var n={},o={1:0},u=[];function l(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,l),r.l=!0,r.exports}l.m=e,l.c=n,l.d=function(e,t,r){l.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},l.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},l.t=function(e,t){if(1&t&&(e=l(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(l.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)l.d(r,n,function(t){return e[t]}.bind(null,n));return r},l.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return l.d(t,"a",t),t},l.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},l.p="./";var a=this.webpackJsonpstreamlit_component_template=this.webpackJsonpstreamlit_component_template||[],p=a.push.bind(a);a.push=t,a=a.slice();for(var i=0;i<a.length;i++)t(a[i]);var f=p;r()}([])</script><script src="./static/js/2.e150c163.chunk.js"></script><script src="./static/js/main.94ae90dc.chunk.js"></script></body></html>

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
self.__precacheManifest = (self.__precacheManifest || []).concat([
{
"revision": "e526ed00a8863dcf99334e2749737f0d",
"url": "./index.html"
},
{
"revision": "5cf31a92188b5e61c8bc",
"url": "./static/js/2.e150c163.chunk.js"
},
{
"revision": "3fc7fb5bfeeec1534560a2c962e360a7",
"url": "./static/js/2.e150c163.chunk.js.LICENSE.txt"
},
{
"revision": "89dad03be2ec91234bbb",
"url": "./static/js/main.94ae90dc.chunk.js"
},
{
"revision": "7c26bca7e16783d14d15",
"url": "./static/js/runtime-main.11ec9aca.js"
}
]);
2 changes: 1 addition & 1 deletion streamlit_chat/frontend/build/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
importScripts("https://storage.googleapis.com/workbox-cdn/releases/4.3.1/workbox-sw.js");

importScripts(
"./precache-manifest.7ae22b440151a57e659560953381ff34.js"
"./precache-manifest.ac9f52323ee9d6c853f343a1b660b5ab.js"
);

self.addEventListener('message', (event) => {
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

This file was deleted.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion streamlit_chat/frontend/src/stChat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ import { css } from '@emotion/react'
class Chat extends StreamlitComponentBase {
public render = (): ReactNode => {
const { isUser, avatarStyle, seed, message } = this.props.args;
const avatarUrl = `https://avatars.dicebear.com/api/${avatarStyle}/${seed}.svg`
// const avatarUrl = `https://avatars.dicebear.com/api/${avatarStyle}/${seed}.svg`
const avatarUrl = `https://api.dicebear.com/5.x/${avatarStyle}/svg?seed=${seed}`

// Streamlit sends us a theme object via props that we can use to ensure
// that our component has visuals that match the active theme in a
Expand Down