Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multi-user Flag does not work #6408

Open
1 task done
Critter74 opened this issue Sep 27, 2024 · 0 comments
Open
1 task done

multi-user Flag does not work #6408

Critter74 opened this issue Sep 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Critter74
Copy link

Describe the bug

If I start the app with --multi-user flag, I get errors and dont see the answer box.
Whithout the flag, I can see answers and dont get the errors

Is there an existing issue for this?

  • I have searched the existing issues

Reproduction

  • download version v1.14
  • conda create -n textgen python=3.11
  • conda activate textgen
  • pip install -r requirements.txt
  • pip install fastapi==0.112.4 // if not, I get a error
  • python server.py --listen --model some_model --multi-user

Screenshot

image

Logs

11:00:38-778691 INFO     LOADER: "Transformers"
11:00:38-779479 INFO     TRUNCATION LENGTH: 32768
11:00:38-780205 INFO     INSTRUCTION TEMPLATE: "Alpaca"

Running on local URL:  http://0.0.0.0:7860

Traceback (most recent call last):
  File "/home/daniel/miniconda3/envs/textgen/lib/python3.11/site-packages/gradio/queueing.py", line 527, in process_events
    response = await route_utils.call_process_api(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/daniel/miniconda3/envs/textgen/lib/python3.11/site-packages/gradio/route_utils.py", line 261, in call_process_api
    output = await app.get_blocks().process_api(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/daniel/miniconda3/envs/textgen/lib/python3.11/site-packages/gradio/blocks.py", line 1786, in process_api
    result = await self.call_function(
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/daniel/miniconda3/envs/textgen/lib/python3.11/site-packages/gradio/blocks.py", line 1338, in call_function
    prediction = await anyio.to_thread.run_sync(
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/daniel/miniconda3/envs/textgen/lib/python3.11/site-packages/anyio/to_thread.py", line 56, in run_sync
    return await get_async_backend().run_sync_in_worker_thread(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/daniel/miniconda3/envs/textgen/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 2405, in run_sync_in_worker_thread
    return await future
           ^^^^^^^^^^^^
  File "/home/daniel/miniconda3/envs/textgen/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 914, in run
    result = context.run(func, *args)
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/daniel/miniconda3/envs/textgen/lib/python3.11/site-packages/gradio/utils.py", line 759, in wrapper
    response = f(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^
  File "/home/daniel/text-generation-webui/modules/chat.py", line 1143, in handle_character_menu_change
    gr.update(choices=histories, value=histories[0][1]),
                                       ~~~~~~~~~^^^
IndexError: list index out of range

System Info

Ubuntu 22.04
Cuda 12.4
@Critter74 Critter74 added the bug Something isn't working label Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant