nerdyrodent / stablebot Goto Github PK
View Code? Open in Web Editor NEWA very basic bot for generating Stable Diffusion images via the text-generation-webui
License: GNU Affero General Public License v3.0
A very basic bot for generating Stable Diffusion images via the text-generation-webui
License: GNU Affero General Public License v3.0
sd_api_pictures not always kicks in, sometimes it does, most of the time is doesn't . The prompt is generated but the terminal doesn't show "Prompting the image generator via the API on http://127.0.0.1:7861..." no error.
File "E:\Stable Diffussion\one-click-installers\text-generation-webui\extensions\sd_api_bot\script.py", line 90, in get_SD_pictures
for img_str in r['images']:
KeyError: 'images'
I got above when i enable the extension.
Every image reply comes in 3 images... Not one... and the system become slow, how can I change it to 1 reply
Doesn't seem to work anymore, when I try to activate the extension I get this message :
Traceback (most recent call last):
File "D:\oobabooga_windows\text-generation-webui\server.py", line 997, in
create_interface()
File "D:\oobabooga_windows\text-generation-webui\server.py", line 901, in create_interface
extensions_module.create_extensions_block()
File "D:\oobabooga_windows\text-generation-webui\modules\extensions.py", line 153, in create_extensions_block
extension.ui()
File "D:\oobabooga_windows\text-generation-webui\extensions\sd_api_bot\script.py", line 193, in ui
generate_now_btn.click(chat.cai_chatbot_wrapper, shared.input_params, shared.gradio['display'], show_progress=shared.args.no_stream)
AttributeError: module 'modules.chat' has no attribute 'cai_chatbot_wrapper'. Did you mean: 'chatbot_wrapper'?
Traceback (most recent call last):
File "D:\oobabooga_windows\installer_files\env\lib\site-packages\gradio\routes.py", line 395, in run_predict
output = await app.get_blocks().process_api(
File "D:\oobabooga_windows\installer_files\env\lib\site-packages\gradio\blocks.py", line 1193, in process_api
result = await self.call_function(
File "D:\oobabooga_windows\installer_files\env\lib\site-packages\gradio\blocks.py", line 930, in call_function
prediction = await anyio.to_thread.run_sync(
File "D:\oobabooga_windows\installer_files\env\lib\site-packages\anyio\to_thread.py", line 31, in run_sync
return await get_asynclib().run_sync_in_worker_thread(
File "D:\oobabooga_windows\installer_files\env\lib\site-packages\anyio_backends_asyncio.py", line 937, in run_sync_in_worker_thread
return await future
File "D:\oobabooga_windows\installer_files\env\lib\site-packages\anyio_backends_asyncio.py", line 867, in run
result = context.run(func, *args)
File "D:\oobabooga_windows\installer_files\env\lib\site-packages\gradio\utils.py", line 491, in async_iteration
return next(iterator)
File "D:\oobabooga_windows\text-generation-webui\modules\chat.py", line 256, in regenerate_wrapper
for history in chatbot_wrapper('', state, regenerate=True):
File "D:\oobabooga_windows\text-generation-webui\modules\chat.py", line 188, in chatbot_wrapper
visible_reply = apply_extensions("output", visible_reply)
File "D:\oobabooga_windows\text-generation-webui\modules\extensions.py", line 112, in apply_extensions
return EXTENSION_MAP[typ](*args, **kwargs)
File "D:\oobabooga_windows\text-generation-webui\modules\extensions.py", line 58, in _apply_string_extensions
text = getattr(extension, function_name)(text)
File "D:\oobabooga_windows\text-generation-webui\extensions\sd_api_bot\script.py", line 136, in output_modifier
image = get_SD_pictures(string)
File "D:\oobabooga_windows\text-generation-webui\extensions\sd_api_bot\script.py", line 90, in get_SD_pictures
for img_str in r['images']:
KeyError: 'images'
Traceback (most recent call last):
File "/root/text-generation-webui/server.py", line 1173, in
create_interface()
File "/root/text-generation-webui/server.py", line 1067, in create_interface
extensions_module.create_extensions_block()
File "/root/text-generation-webui/modules/extensions.py", line 176, in create_extensions_block
extension.ui()
File "/root/text-generation-webui/extensions/sd_api_bot/script.py", line 193, in ui
generate_now_btn.click(chat.cai_chatbot_wrapper, shared.input_params, shared.gradio['display'], show_progress=shared.args.no_stream)
AttributeError: module 'modules.chat' has no attribute 'cai_chatbot_wrapper'. Did you mean: 'chatbot_wrapper'?
Loading the extension "sd_api_bot"... Ok.
/home/jeff/miniconda3/envs/textgen/lib/python3.10/site-packages/gradio/deprecation.py:40: UserWarning: The 'type' parameter has been deprecated. Use the Number component instead.
warnings.warn(value)
Traceback (most recent call last):
File "/home/jeff/text-generation-webui/server.py", line 532, in
create_interface()
File "/home/jeff/text-generation-webui/server.py", line 514, in create_interface
extensions_module.create_extensions_block()
File "/home/jeff/text-generation-webui/modules/extensions.py", line 69, in create_extensions_block
extension.ui()
File "/home/jeff/text-generation-webui/extensions/sd_api_bot/script.py", line 193, in ui
generate_now_btn.click(chat.cai_chatbot_wrapper, shared.input_params, shared.gradio['display'], show_progress=shared.args.no_stream)
KeyError: 'display'
This happens everytime. I put the sd_api_bot in the extensions folder and it looks like all the others.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.