oobabooga / text-generation-webui

A Gradio web UI for Large Language Models.
GNU Affero General Public License v3.0
40.25k stars 5.28k forks source link

Gradio warnings #4206

Closed nktice closed 1 year ago

nktice commented 1 year ago

Describe the bug

Newer versions of Gradio giving warnings filling the console...

I'm getting warnings on the console from Gradio on deprecation(s)... While they are warnings, they are rather abundant, so good to resolve - so it's practical to see when there's other issues

I do note that this is with newer gradio - here's what it's using... gradio 3.45.2 ( and 3.47.1 ) gradio_client 0.5.3 ( and 0.6.0 ) I tried to revert to use version mentioned in requirements.txt that lead to errors, where things were not functioning, and did not resolve. I prefer warnings where things work, over errors where things do not work... [ Aside from warnings, new versions are functional, so I'll stick with those... ]

This is a warning, and I know that it's ahead on dependencies. With that being said, I thought I'd mention it so there's no surprise. And if others search based on similar warnings, there's a thread for them.

Is there an existing issue for this?

Reproduction

Here's the guide I wrote to do my system install under Ubuntu... https://github.com/nktice/AMD-AI

Includes instructions for running Oobabooga on AMD cards.

Screenshot

No response

Logs

/home/n/anaconda3/envs/textgen/lib/python3.10/site-packages/gradio/helpers.py:818: UserWarning: Using the update method is deprecated. Simply return a new object instead, e.g. `return gr.Textbox(...)` instead of `return gr.update(...)
  warnings.warn(
/home/n/anaconda3/envs/textgen/lib/python3.10/site-packages/gradio/components/checkbox.py:105: UserWarning: Using the update method is deprecated. Simply return a new object instead, e.g. `return gr.Checkbox(...)` instead of `return gr.Checkbox.update(...)`.
  warnings.warn(
/home/n/anaconda3/envs/textgen/lib/python3.10/site-packages/gradio/components/textbox.py:163: UserWarning: Using the update method is deprecated. Simply return a new object instead, e.g. `return gr.Textbox(...)` instead of `return gr.Textbox.update(...)`.
  warnings.warn(
/home/n/anaconda3/envs/textgen/lib/python3.10/site-packages/gradio/components/slider.py:150: UserWarning: Using the update method is deprecated. Simply return a new object instead, e.g. `return gr.Slider(...)` instead of `return gr.Slider.update(...)`.
  warnings.warn(
/home/n/anaconda3/envs/textgen/lib/python3.10/site-packages/gradio/components/number.py:144: UserWarning: Using the update method is deprecated. Simply return a new object instead, e.g. `return gr.Number(...)` instead of `return gr.Number.update(...)`.
  warnings.warn(
/home/n/anaconda3/envs/textgen/lib/python3.10/site-packages/gradio/components/dropdown.py:231: UserWarning: The value passed into gr.Dropdown() is not in the list of choices. Please update the list of choices to include: 4 or set allow_custom_value=True.
  warnings.warn(
/home/n/anaconda3/envs/textgen/lib/python3.10/site-packages/gradio/components/dropdown.py:231: UserWarning: The value passed into gr.Dropdown() is not in the list of choices. Please update the list of choices to include: -1 or set allow_custom_value=True.
  warnings.warn(
/home/n/anaconda3/envs/textgen/lib/python3.10/site-packages/gradio/components/markdown.py:88: UserWarning: Using the update method is deprecated. Simply return a new object instead, e.g. `return gr.Markdown(...)` instead of `return gr.Markdown.update(...)`.
  warnings.warn(
/home/n/anaconda3/envs/textgen/lib/python3.10/site-packages/gradio/components/dropdown.py:176: UserWarning: Using the update method is deprecated. Simply return a new object instead, e.g. `return gr.Dropdown(...)` instead of `return gr.Dropdown.update(...)`.
  warnings.warn(

### System Info

```shell
Ubuntu 23.04  [ AMD 5950x 64GB RAM ]
AMD Radeon 7900 XTX 24GB
AMD Radeon 6900 XT 16GB
oobabooga commented 1 year ago

The requirements.txt exists for a reason.