mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-12-04 21:10:30 +01:00
Updated Contributing guidelines (markdown)
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')
|
||||
|
Loading…
Reference in New Issue
Block a user