gradio_web_server_multi fails
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 39.5k
- Forks
- 4.8k
- PR merge metrics
- No merged PRs in 30d
Description
```
python -m fastchat.serve.gradio_web_server_multi
2024-02-29 15:49:58 | INFO | gradio_web_server_multi | args: Namespace(host='0.0.0.0', port=None, share=False, controller_url='http://localhost:21001', concurrency_count=10, model_list_mode='once', moderate=False, show_terms_of_use=False, multimodal=False, register_api_endpoint_file=None, gradio_auth_path=None, elo_results_file=None, leaderboard_table_file=None, gradio_root_path=None, ga_id=None)
2024-02-29 15:49:58 | INFO | gradio_web_server | All models: ['SOLAR-10.7B-Instruct-v1.0', 'vicuna-13b-v1.5']
2024-02-29 15:49:58 | INFO | gradio_web_server | Visible models: ['SOLAR-10.7B-Instruct-v1.0', 'vicuna-13b-v1.5']
2024-02-29 15:49:58 | INFO | gradio_web_server | All models: []
2024-02-29 15:49:58 | INFO | gradio_web_server | Visible models: []
2024-02-29 15:49:59 | ERROR | stderr | /usr/local/lib/python3.10/dist-packages/gradio/components/dropdown.py:173: UserWarning: The value passed into gr.Dropdown() is not in the list of choices. Please update the list of choices to include: or set allow_custom_value=True.
2024-02-29 15:49:59 | ERROR | stderr | warnings.warn(
2024-02-29 15:49:59 | ERROR | stderr | Traceback (most recent call last):
2024-02-29 15:49:59 | ERROR | stderr | File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
2024-02-29 15:49:59 | ERROR | stderr | return _run_code(code, main_globals, None,
2024-02-29 15:49:59 | ERROR | stderr | File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
2024-02-29 15:49:59 | ERROR | stderr | exec(code, run_globals)
2024-02-29 15:49:59 | ERROR | stderr | File "/usr/local/lib/python3.10/dist-packages/fastchat/serve/gradio_web_server_multi.py", line 260, in
2024-02-29 15:49:59 | ERROR | stderr | demo = build_demo(
2024-02-29 15:49:59 | ERROR | stderr | File "/usr/local/lib/python3.10/dist-packages/fastchat/serve/gradio_web_server_multi.py", line 135, in build_demo
2024-02-29 15:49:59 | ERROR | stderr | build_single_vision_language_model_ui(
2024-02-29 15:49:59 | ERROR | stderr | File "/usr/local/lib/python3.10/dist-packages/fastchat/serve/gradio_block_arena_vision.py", line 104, in build_single_vision_language_model_ui
2024-02-29 15:49:59 | ERROR | stderr | gr.Examples(
2024-02-29 15:49:59 | ERROR | stderr | File "/usr/local/lib/python3.10/dist-packages/gradio/helpers.py", line 54, in create_examples
2024-02-29 15:49:59 | ERROR | stderr | examples_obj = Examples(
2024-02-29 15:49:59 | ERROR | stderr | File "/usr/local/lib/python3.10/dist-packages/gradio/helpers.py", line 212, in __init__
2024-02-29 15:49:59 | ERROR | stderr | prediction_value = processing_utils.move_files_to_cache(
2024-02-29 15:49:59 | ERROR | stderr | File "/usr/local/lib/python3.10/dist-packages/gradio/processing_utils.py", line 301, in move_files_to_cache
2024-02-29 15:49:59 | ERROR | stderr | return client_utils.traverse(data, _move_to_cache, client_utils.is_file_obj)
2024-02-29 15:49:59 | ERROR | stderr | File "/usr/local/lib/python3.10/dist-packages/gradio_client/utils.py", line 984, in traverse
2024-02-29 15:49:59 | ERROR | stderr | return func(json_obj)
2024-02-29 15:49:59 | ERROR | stderr | File "/usr/local/lib/python3.10/dist-packages/gradio/processing_utils.py", line 278, in _move_to_cache
2024-02-29 15:49:59 | ERROR | stderr | temp_file_path = block.move_resource_to_block_cache(payload.path)
2024-02-29 15:49:59 | ERROR | stderr | File "/usr/local/lib/python3.10/dist-packages/gradio/blocks.py", line 252, in move_resource_to_block_cache
2024-02-29 15:49:59 | ERROR | stderr | temp_file_path = processing_utils.save_file_to_cache(
2024-02-29 15:49:59 | ERROR | stderr | File "/usr/local/lib/python3.10/dist-packages/gradio/processing_utils.py", line 170, in save_file_to_cache
2024-02-29 15:49:59 | ERROR | stderr | temp_dir = hash_file(file_path)
2024-02-29 15:49:59 | ERROR | stderr | File "/usr/local/lib/python3.10/dist-packages/gradio/processing_utils.py", line 102, in hash_file
2024-02-29 15:49:59 | ERROR | stderr | with open(file_path, "rb") as f:
2024-02-29 15:49:59 | ERROR | stderr | FileNotFoundError: [Errno 2] No such file or directory: '/usr/local/lib/python3.10/dist-packages/fastchat/serve/example_images/city.jpeg'
```
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with fastchat/serve/gradio_web_server_multi.py and fastchat/serve/gradio_block_arena_vision.py, especially build_single_vision_language_model_ui and its Gradio examples. Reproduce with `python -m fastchat.serve.gradio_web_server_multi`, then inspect the referenced `serve/example_images/city.jpeg` path. Done means the command builds the interface without the reported FileNotFoundError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100