How I Use OpenAI Assistants API To Control My Streamlit App

Поделиться
HTML-код
  • Опубликовано: 16 ноя 2024

Комментарии • 47

  • @sempercrescere6274
    @sempercrescere6274 Месяц назад +1

    I implemented a similar app to this for a take home test and got a job of my dream!!!
    I love you, man!! Je t'aime! Keep up the great work!

    • @andfanilo
      @andfanilo  29 дней назад +1

      Nice work 🤩! Thanks for the support, and I hope you have a lot of fun and learning at your new job ! 💪

  • @MMABeijing
    @MMABeijing 9 месяцев назад +2

    In my opinion you have the best resources on youtube, and your style is unparalleled. What a talent you are Sir

    • @andfanilo
      @andfanilo  9 месяцев назад +1

      Wow, thank you, I appreciate the support ☺️

  • @PaulBenthamcom
    @PaulBenthamcom Год назад +2

    Your videos are real hidden gems, thanks for the explanations here 👍

    • @andfanilo
      @andfanilo  Год назад

      Thank you for the kind words 😌 hope to keep seeing you around!

  • @kenchang3456
    @kenchang3456 Год назад +1

    Fascinating, thanks for the detail. And BTW, you hit the right amount of humor, I was smiling through most of the video 🙂

    • @andfanilo
      @andfanilo  Год назад

      Thank you for the support, greatly appreciated :)
      I had loads of fun doing this video, I'm happy I managed to pass a smile and some teachings at the same time!

  • @Hitchon
    @Hitchon 11 месяцев назад +1

    Wow really great job ! I love your editing & teaching style, made the tutorial fun to watch! Keep it up :)

    • @andfanilo
      @andfanilo  11 месяцев назад

      Oh, thank you very much for the supportive feedback ☺️ I'm taking a small break but I'll be back soon, so I hope to see you on the next one!
      Any subject in particular you wanted to see covered one day :) ?

    • @Hitchon
      @Hitchon 11 месяцев назад

      @@andfanilo I’m somewhat new to streamlit, something on session states would be really helpful

    • @tgauss
      @tgauss 11 месяцев назад

      I second this comment. Your style is fast, fun and informative! Appreciate your great content and sharing your expertise.

  • @silkogelman
    @silkogelman Год назад

    👏👏👏🤩 Great tutorial, thank you Fanilo!
    Time for some experimentation 🎉

    • @andfanilo
      @andfanilo  Год назад +1

      Ahah, I feel you always have so many AI platform experimentations running XD do you share them somewhere ?

    • @silkogelman
      @silkogelman Год назад

      @@andfanilo most of them are proof of concepts and experiments, not sure if that code should see the light of day 😅
      I like exploring AI ideas, but they are less than half of what I experiment with.

  • @matthewcover8748
    @matthewcover8748 Год назад

    stoked I stumbled upon your channel, Fanilo 🔥

    • @andfanilo
      @andfanilo  Год назад

      Happy to hear that! Thanks for the support and hope to keep seeing you here :)

  •  Год назад +1

    Amazing video as always, loved the animations too! which tool did you use to create them?

    • @andfanilo
      @andfanilo  Год назад +2

      Thanks for the support :) I've been learning a lot more After Effects recently, and it was a really fun process! I think I can definitely pass more complex boring information from those when I get the hang of it

  • @ibbbyscode
    @ibbbyscode 11 месяцев назад

    Awesome tutorial

    • @andfanilo
      @andfanilo  11 месяцев назад

      Thanks for watching :) hope to see you in the next one!

  • @syenza
    @syenza 11 месяцев назад

    Great video, thanks. Do you take on private clients to assist with implementing the above and other projects?

    • @andfanilo
      @andfanilo  11 месяцев назад +1

      Hello,
      Currently not, as I'm juggling this channel with a fulltime job and being an university lecturer. I'm open to giving advice during 1 hour Zoom calls when I have some time but that's it for now. What are you trying to build?
      Have a nice day!

  • @samsquamsh78
    @samsquamsh78 Год назад +2

    I really like your videos, you always have good topics, creative solutions and add humor to them🙂 for me though (a beginner at python and coding in general), you move a bit too fast. It would be great to see a video where you go from start to finish, as you code live in a speed which is okay for less seasoned developers. but, I understand if that is not your target audience. keep it up!

    • @andfanilo
      @andfanilo  Год назад +4

      Hello! Thanks for the support and for sharing your thoughts in a positive way 🙂
      I have thought about the pacing and difficulty of my videos a lot recently, as more and more beginners stumble on my videos as I grow. I hope I can inspire them to keep coding and improving until they're able to understand a more complex use case video of mine in one take, but I also totally understand it can be very frustrating for people who just want to code at a slower pace (actually even intermediate developers would need to pause at 2-3 points of this video and criticize how fast I am in some difficult parts and I would totally agree, I'm still improving my pacing skills ^^ )
      It's not that I don't want to target beginners, it's rather I haven't found a format I'm comfortable with doing for beginners. There are 2 things that make me not do it right now:
      - I feel there is already a lot of "live coding beginner-friendly" RUclips videos out there, for example just typing "Assistants API", and you have 10-15 RUclipsrs who break down code in a notebook slowly, and I don't really want to compete with them
      - Ok the real reason is, I myself never learn by live coding with a video tutorial. I prefer reading books and reimplementing with blog posts instead, and only watch project overview videos rather than live-coding sessions...so I don't record "live-coding" videos because I can't seem to learn and benefit from those.
      Maybe I could write small blog posts with my videos (like what I did for streamlit-components-tutorial.netlify.app/ ) so after watching the video to get a first grasp of what the project is about, you can live-code with the blog post at the pace you want by reading the blog post, would that sound like a good compromise?
      Or maybe I could...do live code sessions of my complex videis like this one but only accessible through a newsletter or for paying members of my RUclips community. For a financial incentive, I could force myself to do it.
      Anyway, that was a very unstructured brainstorming answer, I hope it makes sense 😆

    • @samsquamsh78
      @samsquamsh78 11 месяцев назад

      @@andfanilo many thanks and much appreciated. I understand the dilemma of pacing and target audience. We have all different ways of learning, and you should probably stick to your beliefs. I will continue watching even though I may not be able to keep the pace up, but i can take inspiration from it😊👍

  • @rockNbrain
    @rockNbrain Год назад

    Fanilo is a real rockstar 🎸

    • @andfanilo
      @andfanilo  Год назад +1

      🎸 I need to do some live touring at conferences then, like real rockstars ahah, what's the conference/meetup near your location :p ?
      Thanks for the support ^^

    • @rockNbrain
      @rockNbrain Год назад

      @@andfanilo Brazil, please come! Lmfao

    • @andfanilo
      @andfanilo  Год назад

      Keeping it in mind :)

  • @camino_interior
    @camino_interior 11 месяцев назад

    Thank you very much for your videos. They are very useful for my learning.
    I made an app in streamlit to manage a parking lot, without knowing that streamlit does not have any functionality to send a print with a form_submit_button. My app needs to print a ticket to give to the customer when they leave the car. Do you have any solution for that?

    • @andfanilo
      @andfanilo  11 месяцев назад +1

      Hello!
      Yeah Streamlit doesn't have any functionality about that, you'll probably need to bring custom Python code & library. Like, are you able to build your own small PDF from data in the Streamlit app with PyPDF2, export as PDF and have a user download it with st.download_button or send that PDF via email? Or send that PDF to a remote Cloud location and a Cloud service that reacts to any new file added there to print it physically? I don't know much about Cloud Printing services though...
      sorry for the very quick brainstorming, those were my immediate unfiltered first thoughts, hope it helps a little

    • @camino_interior
      @camino_interior 11 месяцев назад

      @@andfanilo Thank you very much for your reply. I'm trying with an api that connects to the printer locally. When I have the solution I will share it.

    • @camino_interior
      @camino_interior 11 месяцев назад

      @@andfanilo Would something work?
      import streamlit as st
      import serial
      # Create an instance of the serial.Serial object to communicate with the printer.
      ser = serial.Serial(
      port='/dev/ttyUSB0', # Port to which the printer is connected
      baudrate=9600, # Printer baud rate
      parity=serial.PARITY_NONE, # Printer parity
      stopbits=serial.STOPBITS_ONE, # Printer stop bits
      timeout=1 # Printer wait time (in seconds)
      )
      # Write data to the printer.
      # Obtain the data you want to print from the Streamlit interface
      data = st.text_input('Data to print')
      # Encode the data into a byte string
      data_bytes = data.encode('utf-8')
      # Write the data to the printer
      ser.write(data_bytes)
      # Close the instance of the serial.Serial object when finished using it.
      ser.close()

  • @mikew2883
    @mikew2883 Год назад

    Good stuff! 👍

    • @andfanilo
      @andfanilo  Год назад +1

      Thanks for the support, hope to keep seeing you around :)

    • @mikew2883
      @mikew2883 Год назад

      Absolutely! Just stumbled across your channel and definitely a subscriber now!
      @@andfanilo

    • @andfanilo
      @andfanilo  Год назад +1

      ...you're right I totally forgot about them
      I documented them in the README: github.com/andfanilo/social-media-tutorials/tree/master/20231116-st_assistants (there's also all the code for markers, especially at the plotly part)

  • @emilbalis5010
    @emilbalis5010 Год назад

    Very good :)))

    • @andfanilo
      @andfanilo  Год назад

      Thanks for the support 😃 I hope you’ll keep watching what’s next!

  • @basileekomba2473
    @basileekomba2473 2 месяца назад

    Please How to connect to an existing assistant API using streamlit, assistant'id and openai api Key?
    All the video i see just learn How to create a New one.
    I created my assistant API in playgroung openai and i want ton connect to it by using streamlit. How Can i do it please?

  • @abdollahchelasi1477
    @abdollahchelasi1477 Год назад

    Please teach a streamlit project for hotel reservation

    • @andfanilo
      @andfanilo  Год назад

      Hello, what do you mean by "hotel reservation" ?

  • @abdulmanan8432
    @abdulmanan8432 11 месяцев назад

    to much overacting

    • @andfanilo
      @andfanilo  11 месяцев назад

      🕺 too bad, I guess my channel won't be for you then
      Have a nice day!