GithubHelp home page GithubHelp logo

nerdyrodent / stablebot Goto Github PK

View Code? Open in Web Editor NEW
72.0 72.0 11.0 34 KB

A very basic bot for generating Stable Diffusion images via the text-generation-webui

License: GNU Affero General Public License v3.0

stablebot's People

Contributors

nerdyrodent avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

stablebot's Issues

Not always running

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.

Stablebot3 yaml not recongnized

Hi,

It seems that the yaml character file isn't being read by oobabooga.

myoobaboogachars

I was able to fix it though by changed it to a json file using the ai character editor site.

stableBot3MineChrsList

stableBot3MineChat

KeyError: 'images'

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.

Aaand it's broken

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'?

StableBot no longer works a lot of errors.

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'

Does not work with the latest version of text generation webui

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'?

When I use the extension I get an error

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.