I added the needed google-generativeai but it still dosent work. Can someone help?
Here is the parts of thePy script enter image description here
Normaly the script should look like this enter image description here
I added the needed google-generativeai but it still dosent work. Can someone help?
Here is the parts of thePy script enter image description here
Normaly the script should look like this enter image description here
Copyright © 2021 Jogjafile Inc.
From your error message, I suspect you're using an older version of PyScript. A complete example using the most recent release as of today (
2024.1.3) is:This solves the import error, but runs into a later Module Not Found issue, since
gRPCis not implemented in the Browser. See this discussion on the Pyodide repo.