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

[BUG]: Error when rerunning the app after 1 sucessful completion #57

Open
1 task done
daavoo opened this issue Dec 11, 2024 · 0 comments
Open
1 task done

[BUG]: Error when rerunning the app after 1 sucessful completion #57

daavoo opened this issue Dec 11, 2024 · 0 comments
Labels
bug Something isn't working demo Related to the streamlit demo/app.py

Comments

@daavoo
Copy link
Contributor

daavoo commented Dec 11, 2024

Description

After a succesful completion and having downloaded the result, clicking again on Generate Podcast crashes the app.
This seems to have been introduced in #42

Reproduction

  1. Run the app successfully once
  2. Make some modification (i.e. update the prompt)
  3. Run Generate Podcast Script again.

Relevant log output

`
Traceback (most recent call last):
  File "/usr/local/python/3.10.16/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 88, in exec_func_with_error_handling
    result = func()
  File "/usr/local/python/3.10.16/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 579, in code_to_exec
    exec(code, module.__dict__)
  File "/workspaces/document-to-podcast/demo/app.py", line 154, in <module>
    st.session_state.audio.append(speech)
AttributeError: 'numpy.ndarray' object has no attribute 'append'

Expected behavior

I would expect to generate a new podcast script

System Info

  • default codespaces

Have you searched for similar issues before submitting this one?

  • Yes, I have searched for similar issues
@daavoo daavoo added bug Something isn't working demo Related to the streamlit demo/app.py labels Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working demo Related to the streamlit demo/app.py
Projects
None yet
Development

No branches or pull requests

1 participant