Streamlit pandas profiling

can someone help me with this error?
AttributeError: ‘ProfileReport’ object has no attribute ‘set_variable’

Traceback:

File "c:\users\partapu praneeth\appdata\local\programs\python\python37\lib\site-packages\streamlit\script_runner.py", line 354, in _run_script
    exec(code, module.__dict__)File "C:\Users\Partapu Praneeth\OneDrive\Desktop\major\app.py", line 37, in <module>
    app.run()File "C:\Users\Partapu Praneeth\OneDrive\Desktop\major\multipage.py", line 45, in run
    page['function']()File "C:\Users\Partapu Praneeth\OneDrive\Desktop\major\pages\pandas_profile_app.py", line 24, in app
    st_profile_report(pr)File "c:\users\partapu praneeth\appdata\local\programs\python\python37\lib\site-packages\streamlit_pandas_profiling\__init__.py", line 34, in st_profile_report
    profile_report.set_variable("html", {