text-generation-webui icon indicating copy to clipboard operation
text-generation-webui copied to clipboard

is it possible to change the ui a little bit by myself?

Open drxmy opened this issue 1 year ago • 3 comments

Description I did not see anything related in doc. Since this project is using gradio, I guess this is possible. Does text-generation-webui have such feature? Or could you please tell me which part of code to change? Or i just need to build my own with gradio?

Thank you

drxmy avatar May 05 '23 05:05 drxmy

There is no specific feature to edit the UI apart from the different modes chat, notebook and default

You have to edit the UI code manually in the python files, mostly server.py.

What were you planning to change and why? Could be useful to know if it is something we could improve.

LaaZa avatar May 05 '23 05:05 LaaZa

For example, my model can do many different tasks like rewriting, GEC or some NLU. In the simplest case, these tasks are sloved by different prompts which are not visible to users. Then i need many buttons for these tasks.

drxmy avatar May 05 '23 11:05 drxmy

So you just want different prompts?

You can use the default or notebook(basically the whole context) to write or select a pre-made prompt.

To add new prompts just make a text file in the prompts dir.

LaaZa avatar May 05 '23 11:05 LaaZa

I will give it try first. Thank you!

drxmy avatar May 06 '23 12:05 drxmy