Build a Streamlit Chatbot FAST 🤯

  Рет қаралды 56,814

Coding Is Fun

Coding Is Fun

Күн бұрын

Пікірлер: 77
@CodingIsFun
@CodingIsFun Жыл бұрын
*Here is the link to the written tutorial, incl. the code:* ⤵ docs.streamlit.io/knowledge-base/tutorials/build-conversational-apps
@srh1034
@srh1034 Жыл бұрын
You have an amazing teaching style! Really love it and wish you could produce more content
@CodingIsFun
@CodingIsFun Жыл бұрын
Thanks for the kind words! I am glad you enjoyed it. ♥
@abdollahchelasi1477
@abdollahchelasi1477 Жыл бұрын
It was really great. Please provide a tutorial on deploy app in streamlit that we can make public and always available. I don't want it to go to sleep after 7 days.
@CodingIsFun
@CodingIsFun Жыл бұрын
Thanks for watching. Here you are: kzbin.info/www/bejne/aoSyZHaLjLWMnJI
@CandyMan...
@CandyMan... Жыл бұрын
love it, great video as always🙌
@CodingIsFun
@CodingIsFun Жыл бұрын
Happy to hear that you enjoyed this one too! Thanks for the comment! 🙏
@ma-kel
@ma-kel Жыл бұрын
Where was this last week! I was hired to make a chatgpt clone and was stuck thanks to you I can continue it
@CodingIsFun
@CodingIsFun Жыл бұрын
This feature is fresh out of the oven and was just released on June 27. Good luck with your project! 🍀
@ma-kel
@ma-kel Жыл бұрын
@@CodingIsFun Thanks for the tutorial, I'll try my best.
@AkulSamartha
@AkulSamartha Жыл бұрын
Super Awesome video. which editor do you use ?
@CodingIsFun
@CodingIsFun Жыл бұрын
Thanks for watching. Glad you liked it. For that video, I used "Atom"
@brook26x
@brook26x 6 ай бұрын
thanks man, this helped me a lot 🙌
@CodingIsFun
@CodingIsFun 6 ай бұрын
Glad I could help! Thanks for watching and for the kind words. Cheers, Sven ✌️
@praveenvishnu17
@praveenvishnu17 Жыл бұрын
This is awesome, thanks for the content.
@CodingIsFun
@CodingIsFun Жыл бұрын
My pleasure! Appreciate you taking the time to watch and leave a comment. 👍
@AaSinSin137
@AaSinSin137 Жыл бұрын
Cool!! Thanks for this.
@CodingIsFun
@CodingIsFun Жыл бұрын
Glad you liked it. Thanks for watching and taking the time to leave a comment!
@amanvaishya9867
@amanvaishya9867 9 ай бұрын
Hi that was a great session, could you please give me the complete path for this file which you had uploaded in Github Repo? thankyou!!
@CodingIsFun
@CodingIsFun 9 ай бұрын
Thanks. As I am mentioned, I took the code from the streamlit docs: docs.streamlit.io/knowledge-base/tutorials/build-conversational-apps
@limjuroy7078
@limjuroy7078 9 ай бұрын
Great tutorial, but I have one small issue. From asking second question onwards, I find that all of the previous "assistant" content will display twice on the screen. Example of asking up to 3rd question and stop: User: Hi! Assistant: Hi, how can I help you? Assistant: Hi, how can I help you? User: Do you know CodingIsFun channel? Assistant: Yes, he teaches many Streamlit tutorials in his channel Assistant: Yes, he teaches many Streamlit tutorials in his channel User: Where is he from? Assistant: He is from Germany
@CodingIsFun
@CodingIsFun 9 ай бұрын
Thanks for watching. Hard to tell from a distance why you are facing an issue
@limjuroy7078
@limjuroy7078 9 ай бұрын
@@CodingIsFun I solved it 10 minutes ago 😂 I didn't notice that my program saved the assistant response twice in the session.state.messages
@gunngunn6763
@gunngunn6763 Жыл бұрын
Thank you.. I have exhausted the openai api key usage... Are there any free options?
@CodingIsFun
@CodingIsFun Жыл бұрын
Thanks for watching. Not that I know of.
@zhilee8729
@zhilee8729 Жыл бұрын
This video is very interesting. The only issue is this requires Open API (Secret Key).
@CodingIsFun
@CodingIsFun Жыл бұрын
Thanks for watching! 👍
@naomilago
@naomilago 6 ай бұрын
You can do it with gemini or any other open model from hugging face, for free
@micbab-vg2mu
@micbab-vg2mu Жыл бұрын
Great video - thank you
@CodingIsFun
@CodingIsFun Жыл бұрын
Glad to hear you liked it! Thank you for commenting and watching.
@Burmachach-zc2ls
@Burmachach-zc2ls 6 ай бұрын
Thanks! I have a question, is it possible to do chat_input disabled till we get full response, and enable back again after we get it
@CodingIsFun
@CodingIsFun 6 ай бұрын
Thank you very much for watching the video and your comment. Your requirements are well noted. Yet, I receive many requests for creating individual solutions. As much as I want to help, I simply do not find the time in my daily schedule to develop & test all the different requests. I hope you can understand. Thank you! Cheers, Sven ✌️
@tofolcano9639
@tofolcano9639 5 ай бұрын
Isn't the streamlit folder and all the secrets visible in your github once you push the code?
@CodingIsFun
@CodingIsFun 5 ай бұрын
Thanks for watching. You don't want to push the secrets file to GitHub. Therefore, make sure to include it in the .gitignore file. Cheers, Sven ✌
@komalxz
@komalxz Жыл бұрын
Hey, I need an Excel formula that can apply comma before an entirely uppercase word but without VBA cuz using VBA is not allowed in my company. Could you pls help me?
@CodingIsFun
@CodingIsFun Жыл бұрын
Thanks so much for watching the video and leaving a comment! Your request is definitely noted. However, I get a ton of requests for custom solutions and, as much as I'd love to help everyone out, I just don't have the time in my schedule to develop and test all of them. I hope you can understand. Happy Coding!
@komalxz
@komalxz Жыл бұрын
@@CodingIsFun okayy thankss
@arnoldtvisagie
@arnoldtvisagie Жыл бұрын
Hi. Thank you for an amazing video once again. What other models can I use that will be free or is this only for paid OpenAI accounts?
@CodingIsFun
@CodingIsFun Жыл бұрын
As always, thanks for watching. As far as I know, there are no free APIs offered by OpenAI
@lomo3533
@lomo3533 Жыл бұрын
i just love you man
@CodingIsFun
@CodingIsFun Жыл бұрын
Thank you ❤️
@HarshPahariya-w1k
@HarshPahariya-w1k 4 ай бұрын
is we have to pay for the api of openai
@CodingIsFun
@CodingIsFun 4 ай бұрын
You can use any other API / LLM if you want. I just use the OpenAI API as an example. Cheers, Sven ✌️
@dhmkkk
@dhmkkk 8 ай бұрын
Im trying to make code in such a way that if my input in streamlit chat is some specific questions then user get s options as buttons and on clicking that thing gets input in chat . I tried doing it but the buttons only work outside the if prompt loop seperately and not inside the prompt loop. Any solution?
@CodingIsFun
@CodingIsFun 8 ай бұрын
Thank you very much for watching the video and your comment. Your requirements are well noted. Yet, I receive many requests for creating individual solutions. As much as I want to help, I simply do not find the time in my daily schedule to develop & test all the different requests. I hope you can understand. Thank you! Cheers, Sven ✌️
@arcanum360YT
@arcanum360YT 8 ай бұрын
Great video. However, I'm getting an error: "RateLimitError: You have exceeded your quota" and I haven't even generated a conversation using the API. Or are OpenAI APIs just whack
@CodingIsFun
@CodingIsFun 8 ай бұрын
Thanks for watching. Have a look here: help.openai.com/en/articles/6891831-error-code-429-you-exceeded-your-current-quota-please-check-your-plan-and-billing-details I hope it helps! Cheers, Sven ✌️
@sharonefsr24
@sharonefsr24 4 ай бұрын
Hello, Did you debug the error? The same error I just went throw. Could you please say the steps taken to debug the error?
@arcanum360YT
@arcanum360YT 4 ай бұрын
@@sharonefsr24 I wasn't able to
@sumitranjan5212
@sumitranjan5212 4 ай бұрын
How to put a attachment bUtton in the left corner of text input box??
@CodingIsFun
@CodingIsFun 4 ай бұрын
That's natively not supported in Streamlit according to the docs: docs.streamlit.io/develop/api-reference/chat/st.chat_input Cheers, Sven 🤞
@diakaul7587
@diakaul7587 3 ай бұрын
how can we integrate like dislike feature after the response is given so that user gives a thumbs up and thumns down
@CodingIsFun
@CodingIsFun 3 ай бұрын
Thanks for watching. That is currently not natively supported by Streamlit. Cheers, Sven ✌️
@iDea16388-c
@iDea16388-c Жыл бұрын
🎉 can you create a sample projects calculator of Solar system
@CodingIsFun
@CodingIsFun Жыл бұрын
Thank you very much for watching the video and your comment. Your requirements are well noted. Yet, I receive many requests for creating individual solutions. As much as I want to help, I simply do not find the time in my daily schedule to develop & test all the different requests. I hope you can understand. Thank you!
@tanyyu
@tanyyu 10 ай бұрын
does this still work? i think open ai upfated and it says outdated.
@CodingIsFun
@CodingIsFun 10 ай бұрын
Thanks for watching. Yes, it works
@Aynay27
@Aynay27 9 ай бұрын
​@@CodingIsFunNo, I've tried it and it updates. Mine is an error, please make a new tutorial video 😢🙏
@CodingIsFun
@CodingIsFun 9 ай бұрын
@@Aynay27 My example is staight from the docs: docs.streamlit.io/knowledge-base/tutorials/build-conversational-apps If you think, there is a bug in the Streamlit docs, you might want to raise a Github issue.
@Nuno_Reis_Official
@Nuno_Reis_Official 8 ай бұрын
@@CodingIsFun I don't think @tanyyu and @Aynay27 are referring to Streamlit, that part is fine! What doesn't work is the way you interact with the OpenAI API which indeed has updated and it doesn't work like it's showing on the video anymore as that is considered deprecated. The solution could be to either to downgrade the version of the OpenAI lib with `pip install` or to update the code to reflect the new OpenAI API on chat completions which would be something like: ``` for response in OpenAI().chat.completions.create( model=st.session_state["openai_model"], messages=[ { "role": m["role"], "content": m["content"], } for m in st.session_state[MESSAGES] ], stream=True, ): full_response += response.choices[0].delta.content or "" message_placeholder.write(full_response) ```
@CodingIsFun
@CodingIsFun 8 ай бұрын
@@Nuno_Reis_Official Thanks, that's a good point. Regarding my previous answer, I simply cannot give any advice without knowing the error message
@__________________________6910
@__________________________6910 Жыл бұрын
I hate that thing I can't use chatgpt api with out a billing address. Maybe it's free but I need to give my bank details. I hate this about chatgpt api.
@CodingIsFun
@CodingIsFun Жыл бұрын
Thanks for watching. Yes, unfortunately there is no free lunch in life :(
@__________________________6910
@__________________________6910 Жыл бұрын
@@CodingIsFun 🙂
@hsk7715
@hsk7715 Жыл бұрын
Bro I’m aspiring data analyst but I am worried and really depressed because of gpt 4
@CodingIsFun
@CodingIsFun Жыл бұрын
Don't worry. I suggest you get to know these tools well. Use them to help you work better and faster. I might actually make a separate video on this topic.
@Withshahina
@Withshahina Жыл бұрын
Please address my query, how to deploy a chatbot on our website?
@CodingIsFun
@CodingIsFun Жыл бұрын
Ok, but please do not spam
@Analytix_AI
@Analytix_AI 7 ай бұрын
Can we share streamlit url to anyone?
@CodingIsFun
@CodingIsFun 7 ай бұрын
Yes, after you have deployed your app, you can also share the url. I already have tutorials here on my channel on how to deploy a Streamlit app. Cheers, Sven ✌️
@Analytix_AI
@Analytix_AI 7 ай бұрын
@@CodingIsFun thanks 😊
@armantech5926
@armantech5926 Жыл бұрын
Good job. Cool videos
@CodingIsFun
@CodingIsFun Жыл бұрын
Thank you! Happy to hear that you're enjoying the videos! :)
@grev201
@grev201 Жыл бұрын
What is difference st.secrets vs os.getenv?
@CodingIsFun
@CodingIsFun Жыл бұрын
The key difference is that os.getenv reads environment variables from the operating system, while streamlit.secrets provides a secure way to store and access sensitive data specifically within Streamlit applications, adding an extra layer of security when sharing or deploying these apps.
Build a SaaS with Streamlit
13:24
Coding Is Fun
Рет қаралды 24 М.
Create a LOCAL Python AI Chatbot In Minutes Using Ollama
13:17
Tech With Tim
Рет қаралды 99 М.
How Strong is Tin Foil? 💪
00:25
Brianna
Рет қаралды 70 МЛН
Car Bubble vs Lamborghini
00:33
Stokes Twins
Рет қаралды 42 МЛН
У вас там какие таланты ?😂
00:19
Карина Хафизова
Рет қаралды 27 МЛН
PRANK😂 rate Mark’s kick 1-10 🤕
00:14
Diana Belitskay
Рет қаралды 11 МЛН
Stream LLMs with LangChain + Streamlit | Tutorial
18:26
Alejandro AO - Software & Ai
Рет қаралды 29 М.
How to Build AI ChatBot with Custom Knowledge Base in 10 mins
10:46
Kickstart your Custom Streamlit Chatbot (ft. CSS & Langchain)
9:04
Fanilo Andrianasolo
Рет қаралды 19 М.
How to build a ChatGPT-like clone in Python
12:32
Streamlit
Рет қаралды 12 М.
How to Build Chatbot Interfaces with Python
5:55
Dave Ebbelaar
Рет қаралды 17 М.
Build Your First AI Chatbot in 8 Minutes (with Next.js & OpenAI)
8:02
Streamlit Elements You Should Know About in 2023
14:31
Mısra Turp
Рет қаралды 106 М.
LLM Chat App in Python w/ Ollama-py and Streamlit
22:28
Decoder
Рет қаралды 9 М.
How Strong is Tin Foil? 💪
00:25
Brianna
Рет қаралды 70 МЛН