Updated Contributing guidelines (markdown)

oobabooga 2023-08-03 19:37:24 -03:00
parent a839ddfca4
commit 6d3bcc43db

@ -70,7 +70,7 @@ instead of
[shared.gradio[k] for k in ['history', 'character_menu', 'mode']]
```
* The UI values are not passed directly to the generation functions. Instead, they are first fed into the `shared.gradio['interface_state']` state variable. This variable receives the name `state` when used as input to backend functions. The code for updating `shared.gradio['interface_state']` with the current UI values is the following (it must be associated to some Gradio method):
* The UI values are not passed directly to the generation functions. Instead, they are first fed into the `shared.gradio['interface_state']` state variable. This variable receives the name `state` when used as input to backend functions. The code for updating `shared.gradio['interface_state']` with the current UI values is the following (see `server.py` for several examples):
```python
ui.gather_interface_values, gradio(shared.input_elements), gradio('interface_state')