Need help with Streamlit App Deployment

I am new to computer science. I made an app using google.generativeai. The app seems to be working fine when I run it using Streamlit.

I am now trying to use Streamlit Sharing to deploy the app. However, I get this message whenever I do:

[05:53:49] πŸ“¦ Processed dependencies!

Collecting usage statistics. To deactivate, set browser.gatherUsageStats to False.




[05:54:04] πŸ”Œ Disconnecting...
[05:54:09] πŸ–₯ Provisioning machine...
[05:54:09] πŸŽ› Preparing system...
[05:54:09] β›“ Spinning up manager process...
2023-08-13 05:54:13.086 Uncaught app exception
Traceback (most recent call last):
  File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 552, in _run_script
    exec(code, module.__dict__)
  File "/mount/src/grammarassistantapp/grammar_assistant_app.py", line 2, in <module>
    import google.generativeai as palm
ModuleNotFoundError: No module named 'google.generativeai'
1 Like