copywriter / app.py
JeCabrera's picture
Update app.py
de7f30c verified
raw
history blame
2.42 kB
runtime error
Exit code: 1. Reason: google-generativeai: 0.8.3
/usr/local/lib/python3.10/site-packages/gradio/components/chatbot.py:273: UserWarning: You have not specified a value for the `type` parameter. Defaulting to the 'tuples' format for chatbot messages, but this is deprecated and will be removed in a future version of Gradio. Please set type='messages' instead, which uses openai-style dictionaries with 'role' and 'content' keys.
warnings.warn(
Traceback (most recent call last):
File "/home/user/app/app.py", line 223, in <module>
text_prompt_component.render()
File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 186, in render
raise DuplicateBlockError(
gradio.exceptions.DuplicateBlockError: A block with id: 2 has already been rendered in the current Blocks.
Container logs:
===== Application Startup at 2025-01-18 21:07:48 =====
google-generativeai: 0.8.3
/usr/local/lib/python3.10/site-packages/gradio/components/chatbot.py:273: UserWarning: You have not specified a value for the `type` parameter. Defaulting to the 'tuples' format for chatbot messages, but this is deprecated and will be removed in a future version of Gradio. Please set type='messages' instead, which uses openai-style dictionaries with 'role' and 'content' keys.
warnings.warn(
Traceback (most recent call last):
File "/home/user/app/app.py", line 223, in <module>
text_prompt_component.render()
File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 186, in render
raise DuplicateBlockError(
gradio.exceptions.DuplicateBlockError: A block with id: 2 has already been rendered in the current Blocks.
google-generativeai: 0.8.3
/usr/local/lib/python3.10/site-packages/gradio/components/chatbot.py:273: UserWarning: You have not specified a value for the `type` parameter. Defaulting to the 'tuples' format for chatbot messages, but this is deprecated and will be removed in a future version of Gradio. Please set type='messages' instead, which uses openai-style dictionaries with 'role' and 'content' keys.
warnings.warn(
Traceback (most recent call last):
File "/home/user/app/app.py", line 223, in <module>
text_prompt_component.render()
File "/usr/local/lib/python3.10/site-packages/gradio/blocks.py", line 186, in render
raise DuplicateBlockError(
gradio.exceptions.DuplicateBlockError: A block with id: 2 has already been rendered in the current Blocks.