cookbook icon indicating copy to clipboard operation
cookbook copied to clipboard

Use response.text and response.data

Open MarkDaoust opened this issue 1 year ago • 4 comments

Use response.text and response.data

Also:

live_api_starter.ipynb

  • Use enumerate instead of first
  • Give option to pass turns= when creating the autio loop so it can run without interaction.

live_api_starter.py

  • Use a single output message queue
  • Cleanup the exception handling
  • fix BGR2RGB ( like https://github.com/google-gemini/cookbook/pull/338 )
  • Limit output queue size
  • exception_on_overflow=False when debugging so it doesn't crash as sook as you pause.

websockets/live_api_starter.py

  • Use a single oputput message queue
  • Cleanup the exception handling

README.md

  • Mention video out.

MarkDaoust avatar Dec 12 '24 12:12 MarkDaoust

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

View / edit / reply to this conversation on ReviewNB

Giom-V commented on 2024-12-12T14:50:12Z ----------------------------------------------------------------

Line #15.    async def aenumerate(it):

Typo? It not maybe you should name it differently?


MarkDaoust commented on 2024-12-12T22:37:26Z ----------------------------------------------------------------

Any suggestions? async_enumerate?

Giom-V commented on 2024-12-15T12:59:35Z ----------------------------------------------------------------

I think it would be clearer yes.

Any suggestions? async_enumerate?


View entire conversation on ReviewNB

MarkDaoust avatar Dec 12 '24 22:12 MarkDaoust

I think it would be clearer yes.


View entire conversation on ReviewNB

Giom-V avatar Dec 15 '24 12:12 Giom-V