h2oai / h2ogpt

Private chat with local GPT with document, images, video, etc. 100% private, Apache 2.0. Supports oLLaMa, Mixtral, llama.cpp, and more. Demo: https://gpt.h2o.ai/ https://gpt-docs.h2o.ai/
http://h2o.ai
Apache License 2.0
11.39k stars 1.25k forks source link

"Textbox" word added to the question textbox and then added to the question itself. #972

Closed slavag closed 1 year ago

slavag commented 1 year ago

"Textbox" word added to the question textbox and then added to the question itself. Please attached screenshot First question :

image

Second question:

image

And next error appears when clicking on "Clear" button, seems to be related

image

Log:

Traceback (most recent call last):
  File "/Users/slava/.pyenv/versions/3.11.3/lib/python3.11/site-packages/gradio/routes.py", line 488, in run_predict
    output = await app.get_blocks().process_api(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/slava/.pyenv/versions/3.11.3/lib/python3.11/site-packages/gradio/blocks.py", line 1434, in process_api
    data = self.postprocess_data(fn_index, result["prediction"], state)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/slava/.pyenv/versions/3.11.3/lib/python3.11/site-packages/gradio/blocks.py", line 1341, in postprocess_data
    prediction_value = block.postprocess(prediction_value)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/slava/.pyenv/versions/3.11.3/lib/python3.11/site-packages/gradio/components/chatbot.py", line 231, in postprocess
    for message_pair in y:
TypeError: 'Textbox' object is not iterable
pseudotensor commented 1 year ago

https://github.com/h2oai/h2ogpt/issues/947#issuecomment-1760022583

slavag commented 1 year ago

@pseudotensor Thanks, so need to update gradio ? or to downgrade it ? Update : upgrading gradio solved the issue

pseudotensor commented 1 year ago

Just upgrade all packages to be consistent with requirements.txt as in readme_linux.md etc. You can try just upgrading gradio, but I can't tell you if that is enough and is not supported.

slavag commented 1 year ago

I upgraded gradio and seems to ok. Thanks