Hello,
I have a Bayesian optimization workflow what I want to put in Streamlit app.
However, the function evaluation part will be interactive where looking at a image, the user will rate the image as (0, 1, or 2).
My target workflow in Streamlit should be my BO code will stop at that function eval point and wait for the user to provide the input and then run for next iteration with the new image and stops for user input again, so on…
As I am working in Streamlit, I see after passing the input, it tends to run the entire code (with default values of the widgets), and with changes in the input in widget, it starts running from fresh, which I dont want
I want to run the app which will stop at certain point of my integral BO code and wait for user interaction to continue running again. Is this workflow possible in Streamlit?
I have very minimal experience in Streamlit. Any suggestions?
Take a look at those and the examples, and I suspect you’ll find some tools to solve your use-case. If you get stuck on something specific, let me know!
Thank you for your help.
Another question I have-
It seems the app execute the whole section of the code, however, is it possible to hold the execution after certain line of code and then with user (may be clicking botton or anything) to execute the rest of the code.
Please note, I see (after using session) that the app runs the full code and shows all the images where I can able to change value of the widget of all those images individually, but I would want the code not to show all the images but one image at a time (the other images to not execute before my rating to the earlier image)
Basically all the image data lies in a matrix, where I would want the app to pause after running the 1st entry of the matrix (1st image) and after user give rating of that image, the next data in the loop will run to show the next image.
Can this workflow be possible?
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.