Build and share delightful machine learning apps, all in Python. 🌟 Star to support our work!
1641 matches across 19 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | demo/chicago-bikeshare-dashboard/run.py | 27 | def get_most_popular_stations(): |
| LOW | demo/image_editor_sketchpad/run.py | 4 | def percent_of_pixels_selected(image): |
| LOW | demo/navbar_query_params/run.py | 11 | def update_dropdown_based_on_query(request: gr.Request): |
| LOW | demo/super_html/run.py | 76 | def update_templated_html_css(name, color, bold): |
| LOW | demo/image_editor_inpainting/run.py | 4 | def average_inpainting_colors(image): |
| LOW | test/test_queueing.py | 78 | def test_cached_generator_finishes_on_queue_cache_hit(self, connect): |
| LOW | test/test_queueing.py | 106 | def test_queue_average_excludes_manual_cache_hits(self, connect): |
| LOW | test/test_queueing.py | 144 | def test_default_concurrency_limits(self, default_concurrency_limit, statuses): |
| LOW | test/test_queueing.py | 173 | def test_heartbeat_task_cancelled_after_stream_completes(): |
| LOW | test/test_queueing.py | 227 | def test_cancel_removes_pending_event_from_queue(): |
| LOW | test/test_components.py | 32 | def test_get_component_instance_rendering( |
| LOW | test/test_components.py | 44 | def test_no_duplicate_uncased_names(self, io_components): |
| LOW | test/test_components.py | 49 | def test_dataframe_process_example_converts_dataframes(): |
| LOW | test/test_components.py | 66 | def test_process_example_returns_file_basename(component): |
| LOW | test/test_components.py | 102 | def test_template_component_configs(io_components): |
| LOW | test/test_components.py | 122 | def test_component_example_values(io_components): |
| LOW | test/test_components.py | 131 | def test_component_example_payloads(io_components): |
| LOW | test/test_components.py | 154 | def test_all_io_components_are_pickleable(io_components): |
| LOW | test/test_utils.py | 60 | def test_colab_check_no_ipython(self, mock_get_ipython): |
| LOW | test/test_utils.py | 65 | def test_ipython_check_import_fail(self, mock_get_ipython): |
| LOW | test/test_utils.py | 70 | def test_ipython_check_no_ipython(self, mock_get_ipython): |
| LOW | test/test_utils.py | 74 | def test_download_if_url_doesnt_crash_on_connection_error(self): |
| LOW | test/test_utils.py | 99 | def test_download_if_url_correct_parse(self): |
| LOW | test/test_utils.py | 104 | def test_is_hosted_notebook_false(self): |
| LOW | test/test_utils.py | 107 | def test_kaggle_check_true_when_run_type_set(self): |
| LOW | test/test_utils.py | 114 | def test_assert_configs_are_equivalent(): |
| LOW | test/test_utils.py | 862 | def test_function_with_no_docstring(self): |
| LOW | test/test_utils.py | 871 | def test_function_with_no_parameters(self): |
| LOW | test/test_utils.py | 881 | def test_function_with_alternate_parameter_section(self): |
| LOW | test/test_utils.py | 990 | def test_unload_registered_last(self): |
| LOW | test/test_utils.py | 999 | def test_unload_registered_first(self): |
| LOW | test/test_utils.py | 1008 | def test_unload_registered_in_middle(self): |
| LOW | test/test_utils.py | 1018 | def test_no_unload_no_heartbeat(self): |
| LOW | test/test_utils.py | 1026 | def test_per_session_manual_cache_connects_heartbeat(self): |
| LOW | test/test_utils.py | 1091 | async def test_aclose_retries_on_already_executing(self): |
| LOW | test/test_utils.py | 1101 | async def test_aclose_timeout_raises(self): |
| LOW | test/test_utils.py | 1110 | async def test_aclose_raises_other_value_error(self): |
| LOW | test/test_utils.py | 162 | def test_format_ner_list_standard(self): |
| LOW | test/test_utils.py | 177 | def test_format_ner_list_empty(self): |
| LOW | test/test_utils.py | 276 | def test_abspath_symlink_path(self): |
| LOW | test/test_utils.py | 320 | def test_get_type_hints_with_unresolvable_forward_ref(self): |
| LOW | test/test_utils.py | 329 | def test_is_special_typed_parameter(self): |
| LOW | test/test_utils.py | 340 | def test_is_special_typed_parameter_with_pipe(self): |
| LOW | test/test_utils.py | 351 | def test_check_function_inputs_match(self): |
| LOW | test/test_utils.py | 400 | def test_is_in_or_equal_posix_specific_paths(): |
| LOW | test/test_utils.py | 440 | def test_is_in_or_equal_fuzzer(path_1, path_2): |
| LOW | test/test_utils.py | 459 | def test_is_allowed_file_fuzzer( |
| LOW | test/test_utils.py | 500 | def is_allowed_file_corner_cases(path, blocked_paths, allowed_paths, result): |
| LOW | test/test_utils.py | 521 | def test_is_in_or_equal_edge_cases(path_1, path_2, expected): |
| LOW | test/test_utils.py | 534 | def test_get_extension_from_file_path_or_url(path_or_url, extension): |
| LOW | test/test_utils.py | 623 | def test_function_with_kwargs(self): |
| LOW | test/test_utils.py | 629 | def test_function_with_special_args(self): |
| LOW | test/test_utils.py | 646 | def test_class_method_skip_first_param(self): |
| LOW | test/test_utils.py | 656 | def test_static_method_no_skip(self): |
| LOW | test/test_utils.py | 667 | def test_class_method_with_args(self): |
| LOW | test/test_utils.py | 765 | def test_safe_deepcopy_custom_object(self): |
| LOW | test/test_utils.py | 776 | def test_safe_deepcopy_handles_undeepcopyable(self): |
| LOW | test/test_utils.py | 819 | def test_basic_function_description(self): |
| LOW | test/test_utils.py | 836 | def test_function_with_extended_returns(self): |
| LOW | test/test_utils.py | 895 | def test_function_with_arguments_section(self): |
| 660 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | demo/random_demos.py | 7 | |
| LOW | demo/many_tabs/run.py | 3 | |
| LOW | demo/blocks_inputs/run.py | 2 | |
| LOW | demo/login_with_huggingface/run.py | 1 | |
| LOW | demo/state_cleanup/run.py | 1 | |
| LOW | demo/stream_audio_out/run.py | 4 | |
| LOW | demo/theme_new_step_3/run.py | 1 | |
| LOW | demo/theme_new_step_2/run.py | 1 | |
| LOW | demo/clear_components/run.py | 3 | |
| LOW | demo/iframe_resizer/run.py | 3 | |
| LOW | demo/kitchen_sink/run.py | 1 | |
| LOW | test/test_utils.py | 1 | |
| LOW | js/_website/generate_jsons/embed.py | 3 | |
| LOW | js/_website/generate_jsons/embed.py | 4 | |
| LOW | js/_website/generate_jsons/embed.py | 5 | |
| LOW | js/_website/generate_jsons/embed.py | 7 | |
| LOW | js/_website/generate_jsons/embed.py | 8 | |
| LOW | js/_website/generate_jsons/src/docs/__init__.py | 6 | |
| LOW | js/_website/generate_jsons/src/docs/__init__.py | 7 | |
| LOW | js/_website/generate_jsons/src/docs/__init__.py | 12 | |
| LOW | js/_website/generate_jsons/src/docs/__init__.py | 13 | |
| LOW | js/preview/test/test/backend/gradio_test/__init__.py | 2 | |
| LOW | gradio/flagging.py | 1 | |
| LOW | gradio/image_utils.py | 1 | |
| LOW | gradio/server.py | 3 | |
| LOW | gradio/renderable.py | 1 | |
| LOW | gradio/node_server.py | 1 | |
| LOW | gradio/events.py | 4 | |
| LOW | gradio/block_function.py | 1 | |
| LOW | gradio/queueing.py | 1 | |
| LOW | gradio/route_utils.py | 1 | |
| LOW | gradio/validators.py | 6 | |
| LOW | gradio/processing_utils.py | 1 | |
| LOW | gradio/state_holder.py | 1 | |
| LOW | gradio/interface.py | 5 | |
| LOW | gradio/component_meta.py | 1 | |
| LOW | gradio/chat_interface.py | 5 | |
| LOW | gradio/__init__.py | 1 | |
| LOW | gradio/__init__.py | 3 | |
| LOW | gradio/__init__.py | 4 | |
| LOW | gradio/__init__.py | 5 | |
| LOW | gradio/__init__.py | 6 | |
| LOW | gradio/__init__.py | 7 | |
| LOW | gradio/__init__.py | 7 | |
| LOW | gradio/__init__.py | 7 | |
| LOW | gradio/__init__.py | 7 | |
| LOW | gradio/__init__.py | 7 | |
| LOW | gradio/__init__.py | 8 | |
| LOW | gradio/__init__.py | 9 | |
| LOW | gradio/__init__.py | 9 | |
| LOW | gradio/__init__.py | 10 | |
| LOW | gradio/__init__.py | 11 | |
| LOW | gradio/__init__.py | 12 | |
| LOW | gradio/__init__.py | 12 | |
| LOW | gradio/__init__.py | 12 | |
| LOW | gradio/__init__.py | 12 | |
| LOW | gradio/__init__.py | 12 | |
| LOW | gradio/__init__.py | 12 | |
| LOW | gradio/__init__.py | 12 | |
| LOW | gradio/__init__.py | 12 | |
| 382 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | demo/chatbot_core_components_simple/run.py | 31 | |
| LOW | demo/calculator_live/run.py | 3 | |
| LOW | demo/dialogue_diarization_demo/run.py | 22 | |
| LOW | demo/image_segmentation/run.py | 32 | |
| LOW | demo/calculator/run.py | 3 | |
| LOW | demo/mini_leaderboard/run.py | 102 | |
| LOW | demo/outbreak_forecast/run.py | 6 | |
| LOW | demo/bar_plot/run.py | 53 | |
| LOW | demo/cache_demo/run.py | 55 | |
| LOW | demo/chatbot_core_components/run.py | 160 | |
| LOW | demo/dashboard/helpers.py | 68 | |
| LOW | demo/calculator_blocks/run.py | 3 | |
| LOW | demo/calculator_blocks_cached/run.py | 3 | |
| LOW | demo/line_plot/run.py | 40 | |
| LOW | test/test_queueing.py | 173 | |
| LOW | test/test_queueing.py | 227 | |
| LOW | test/test_components.py | 131 | |
| LOW | test/test_node_proxy.py | 272 | |
| LOW | test/test_node_proxy.py | 300 | |
| LOW | test/test_networking.py | 68 | |
| LOW | test/test_networking.py | 121 | |
| LOW | test/test_blocks.py | 2064 | |
| LOW | test/test_routes.py | 2223 | |
| LOW | test/test_docker/conftest.py | 74 | |
| LOW | test/test_docker/conftest.py | 77 | |
| LOW | …everse_proxy_root_path/test_reverse_proxy_root_path.py | 45 | |
| LOW | …t/test_docker/test_reverse_proxy/test_reverse_proxy.py | 45 | |
| LOW | …roxy_fastapi_mount/test_reverse_proxy_fastapi_mount.py | 45 | |
| LOW | …oot_path/test_reverse_proxy_fastapi_mount_root_path.py | 58 | |
| LOW | js/_website/generate_jsons/chunking.py | 22 | |
| LOW | js/_website/generate_jsons/src/docs/__init__.py | 51 | |
| LOW | js/_website/generate_jsons/src/docs/__init__.py | 68 | |
| LOW | js/_website/generate_jsons/src/docs/__init__.py | 87 | |
| LOW | js/_website/generate_jsons/src/docs/__init__.py | 115 | |
| LOW | js/_website/generate_jsons/src/docs/__init__.py | 143 | |
| LOW | gradio/flagging.py | 241 | |
| LOW | gradio/image_utils.py | 48 | |
| LOW | gradio/image_utils.py | 84 | |
| LOW | gradio/image_utils.py | 113 | |
| LOW | gradio/image_utils.py | 263 | |
| LOW | gradio/node_server.py | 199 | |
| LOW | gradio/tunneling.py | 83 | |
| LOW | gradio/queueing.py | 279 | |
| LOW | gradio/queueing.py | 521 | |
| LOW | gradio/queueing.py | 585 | |
| LOW | gradio/queueing.py | 631 | |
| LOW | gradio/queueing.py | 669 | |
| LOW | gradio/queueing.py | 787 | |
| LOW | gradio/route_utils.py | 268 | |
| LOW | gradio/route_utils.py | 981 | |
| LOW | gradio/route_utils.py | 758 | |
| LOW | gradio/processing_utils.py | 422 | |
| LOW | gradio/processing_utils.py | 542 | |
| LOW | gradio/processing_utils.py | 711 | |
| LOW | gradio/processing_utils.py | 762 | |
| LOW | gradio/processing_utils.py | 450 | |
| LOW | gradio/processing_utils.py | 570 | |
| LOW | gradio/processing_utils.py | 860 | |
| LOW | gradio/interface.py | 84 | |
| LOW | gradio/interface.py | 555 | |
| 119 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | demo/dialogue_diarization_demo/run.py | 60 | except Exception as e: |
| MEDIUM | demo/dialogue_diarization_demo/run.py | 61 | print(f"Error in diarization: {str(e)}") |
| LOW | demo/dialogue_diarization_demo/run.py | 73 | except Exception as e: |
| LOW | demo/all_demos/run.py | 26 | except Exception as e: |
| LOW | demo/depth_estimation/run.py | 41 | except Exception: |
| MEDIUM | demo/depth_estimation/run.py | 47 | print("Error reconstructing 3D model") |
| MEDIUM | test/test_utils.py | 425 | def my_check(path_1, path_2): |
| LOW | test/test_utils.py | 448 | except Exception as e: |
| LOW | test/test_node_proxy.py | 209 | except Exception: |
| LOW | test/test_node_proxy.py | 213 | except Exception: |
| LOW | test/test_networking.py | 212 | except Exception as e: |
| MEDIUM | test/test_networking.py | 213 | print(f"Error processing HTML: {str(e)}") |
| LOW | test/test_networking.py | 258 | except Exception as e: |
| LOW | test/test_networking.py | 294 | except Exception: |
| LOW | test/test_docker/conftest.py | 117 | except Exception as e: |
| LOW | test/test_docker/conftest.py | 169 | except Exception as e: |
| MEDIUM | test/test_docker/conftest.py | 170 | print(f"Error during service check: {e}") |
| LOW | test/test_docker/conftest.py | 180 | except Exception as e: |
| MEDIUM | test/test_docker/conftest.py | 181 | print(f"Error during cleanup: {e}") |
| LOW | js/_website/generate_jsons/generate.py | 26 | except Exception as e: |
| MEDIUM | js/_website/generate_jsons/generate.py | 27 | print(f"Error listing objects in bucket {bucket_name}: {e}") |
| LOW | js/_website/generate_jsons/generate.py | 40 | except Exception as e: |
| MEDIUM | js/_website/generate_jsons/generate.py | 41 | print(f"Error downloading {s3_key}: {e}") |
| LOW | js/preview/src/examine.py | 74 | except Exception as e: |
| LOW | gradio/flagging.py | 277 | except Exception: |
| LOW | gradio/flagging.py | 416 | except Exception as e: |
| MEDIUM | gradio/flagging.py | 417 | print(f"Error while flagging: {e}") |
| LOW | gradio/image_utils.py | 197 | except Exception: |
| LOW | gradio/image_utils.py | 309 | except Exception: |
| LOW | gradio/node_server.py | 165 | except Exception as e: |
| LOW | gradio/node_server.py | 195 | except Exception: |
| LOW | gradio/node_server.py | 222 | except Exception: |
| LOW | gradio/block_function.py | 11 | except Exception: |
| LOW | gradio/queueing.py | 171 | except Exception as e: |
| LOW | gradio/queueing.py | 370 | except Exception as e: |
| LOW | gradio/queueing.py | 449 | except Exception: |
| LOW | gradio/queueing.py | 882 | except Exception as e: |
| LOW | gradio/queueing.py | 969 | except Exception as e: |
| LOW | gradio/queueing.py | 1043 | except Exception as e: |
| LOW | gradio/queueing.py | 1093 | except Exception: |
| MEDIUM | gradio/queueing.py | 521 | def start_processing(self) -> None: |
| LOW | gradio/route_utils.py | 890 | except Exception: |
| LOW | gradio/route_utils.py | 1208 | except Exception as e: |
| MEDIUM | gradio/processing_utils.py | 1110 | print(f"Error converting video to browser-playable format {str(e)}") |
| LOW | gradio/screen_recording_utils.py | 176 | except Exception: |
| LOW | gradio/screen_recording_utils.py | 326 | except Exception: |
| LOW | gradio/external_utils.py | 152 | except Exception as e: |
| LOW | gradio/external_utils.py | 248 | except Exception as e: |
| LOW | gradio/external_utils.py | 254 | except Exception: |
| LOW | gradio/external_utils.py | 428 | except Exception as e: |
| LOW | gradio/caching.py | 153 | except Exception: |
| MEDIUM | gradio/caching.py | 146 | def _get_session_hash() -> str | None: |
| MEDIUM | gradio/mcp.py | 741 | def handle_sse(request): |
| LOW | gradio/mcp.py | 752 | except Exception as e: |
| LOW | gradio/mcp.py | 1117 | except Exception: |
| LOW | gradio/networking.py | 41 | except Exception as e: |
| LOW | gradio/networking.py | 49 | except Exception as e: |
| MEDIUM | gradio/utils.py | 102 | def get_package_version() -> str: |
| MEDIUM | gradio/utils.py | 128 | def safe_get_stop_event() -> asyncio.Event: |
| LOW | gradio/utils.py | 110 | except Exception: |
| 71 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | CHANGELOG.md | 0 | # state cleanup demo 🖼️ images are saved in a user-specific directory and deleted when the users closes the page via dem |
| HIGH | demo/state_cleanup/run.py | 0 | # state cleanup demo 🖼️ images are saved in a user-specific directory and deleted when the users closes the page via dem |
| HIGH | gradio/CHANGELOG.md | 0 | # state cleanup demo 🖼️ images are saved in a user-specific directory and deleted when the users closes the page via dem |
| HIGH | client/python/CHANGELOG.md | 0 | # state cleanup demo 🖼️ images are saved in a user-specific directory and deleted when the users closes the page via dem |
| HIGH | client/python/gradio_client/CHANGELOG.md | 0 | # state cleanup demo 🖼️ images are saved in a user-specific directory and deleted when the users closes the page via dem |
| HIGH | client/js/CHANGELOG.md | 0 | # state cleanup demo 🖼️ images are saved in a user-specific directory and deleted when the users closes the page via dem |
| HIGH | CHANGELOG.md | 0 | # hello world! start typing below to see the output. |
| HIGH | demo/blocks_hello/run.py | 0 | # hello world! start typing below to see the output. |
| HIGH | .agents/skills/gradio/references/examples.md | 0 | # hello world! start typing below to see the output. |
| HIGH | gradio/CHANGELOG.md | 0 | # hello world! start typing below to see the output. |
| HIGH | demo/blocks_xray/run.py | 0 | # detect disease from scan with this model you can lorem ipsum - ipsum 1 - ipsum 2 |
| HIGH | scripts/overwrite_xray_config.py | 0 | # detect disease from scan with this model you can lorem ipsum - ipsum 1 - ipsum 2 |
| HIGH | scripts/overwrite_xray_config.py | 0 | # detect disease from scan with this model you can lorem ipsum - ipsum 1 - ipsum 2 |
| HIGH | test/components/test_chatbot.py | 0 | test prose at the start followed by thinking blocks |
| HIGH | test/components/test_chatbot.py | 0 | test prose at the start followed by thinking blocks |
| HIGH | test/components/test_chatbot.py | 0 | test prose at the start followed by thinking blocks |
| HIGH | gradio/components/textbox.py | 0 | parameters: payload: the text entered in the textarea. returns: passes text value as a {str} into the function. |
| HIGH | gradio/components/datetime.py | 0 | parameters: payload: the text entered in the textarea. returns: passes text value as a {str} into the function. |
| HIGH | gradio/_simple_templates/simpletextbox.py | 0 | parameters: payload: the text entered in the textarea. returns: passes text value as a {str} into the function. |
| HIGH | gradio/components/base.py | 0 | convert the data from the csv or jsonl file into the component state. |
| HIGH | gradio/components/base.py | 0 | convert the data from the csv or jsonl file into the component state. |
| HIGH | guides/08_custom-components/04_backend.md | 0 | convert the data from the csv or jsonl file into the component state. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | test/test_utils.py | 838 | This is a test function. Args: param1: First parameter param2: Second parame |
| HIGH | gradio/media.py | 38 | Internal function to get the path to a media file. Args: media_type: Type of media (images, videos, au |
| HIGH | gradio/media.py | 76 | Get path to an image file. Args: filename: Filename of the image (e.g., "tower.jpg"). If None, returns |
| HIGH | gradio/media.py | 93 | Get path to a video file. Args: filename: Filename of the video (e.g., "world.mp4"). If None, returns |
| HIGH | gradio/media.py | 110 | Get path to an audio file. Args: filename: Filename of the audio (e.g., "cantina.wav"). If None, retur |
| HIGH | gradio/media.py | 127 | Get path to a 3D model file. Args: filename: Filename of the 3D model (e.g., "Duck.glb"). If None, ret |
| HIGH | gradio/media.py | 144 | Get path to a data file (CSV, JSON, text, etc.). Args: filename: Filename of the data file (e.g., "tit |
| HIGH | gradio/utils.py | 821 | Runs coroutines in background. Warning, be careful to not use this function in other than FastAPI scope, becau |
| HIGH | gradio/utils.py | 1912 | Get the description of a function, its parameters, and return values by parsing the docstring. The docstring sh |
| HIGH | gradio/blocks.py | 2574 | Launches a simple web server that serves the demo. Can also be used to create a public link used by any |
| HIGH | gradio/external.py | 54 | Constructs a Gradio app automatically from a Hugging Face model/Space repo name or a 3rd-party API provider. Note t |
| HIGH | gradio/external.py | 939 | Load a Gradio app from an OpenAPI v3 specification. Parameters: openapi_spec: URL, file path, or dicti |
| HIGH | gradio/data_classes.py | 298 | Copies the file to a specified directory and returns a new FileData object representing the copied file. |
| HIGH | guides/10_mcp/01_building-mcp-server-with-gradio.md | 155 | Make a request to everyone's favorite API. Args: prompt: The prompt to send to the API. Returns: |
| HIGH | client/python/gradio_client/client.py | 480 | Calls the Gradio API and returns the result (this is a blocking call). Arguments can be provided as positional |
| HIGH | client/python/gradio_client/client.py | 521 | Creates and returns a Job object which calls the Gradio API in a background thread. The job can be used to retr |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | demo/scatter_plot/run.py | 1 | import gradio as gr |
| LOW | demo/line_plot/run.py | 21 | # [ |
| LOW | .config/playwright/index.ts | 1 | // Import styles, initialize component theme here. |
| LOW | test/test_theme_sharing.py | 281 | def test_get_next_version(self, mock): |
| LOW | test/requirements.txt | 1 | # This file was autogenerated by uv via the following command: |
| LOW | test/requirements.txt | 21 | # via |
| LOW | test/requirements.txt | 41 | # via typer-slim |
| LOW | test/requirements.txt | 61 | # via pydantic |
| LOW | test/requirements.txt | 81 | fsspec==2024.12.0 |
| LOW | test/requirements.txt | 101 | # tokenizers |
| LOW | test/requirements.txt | 121 | jedi==0.19.2 |
| LOW | test/requirements.txt | 141 | kiwisolver==1.4.8 |
| LOW | test/requirements.txt | 161 | numpy==2.2.2 |
| LOW | test/requirements.txt | 181 | # pytest |
| LOW | test/requirements.txt | 201 | polars==1.31.0 |
| LOW | test/requirements.txt | 221 | # via build |
| LOW | test/requirements.txt | 241 | pyyaml==6.0.2 |
| LOW | test/requirements.txt | 261 | # jsonschema |
| LOW | test/requirements.txt | 281 | sortedcontainers==2.4.0 |
| LOW | test/requirements.txt | 301 | # via -r test/requirements.in |
| LOW | test/requirements.txt | 321 | # via |
| LOW | test/requirements.txt | 341 | # botocore |
| LOW | test/tmp/tmp.txt | 1 | # tmp files saved here |
| LOW | js/core/src/stores.ts | 1 | import { type Writable, writable, get } from "svelte/store"; |
| LOW | js/utils/src/utils.svelte.ts | 541 | } |
| LOW | js/spa/test/components.test.ts | 101 | show_select_all: false |
| LOW | js/spa/test/components.test.ts | 121 | // [ |
| LOW | js/row/Index.svelte | 1 | <script lang="ts"> |
| LOW | js/_spaces-test/vite.config.js | 101 | // discloseVersion: false, |
| LOW | js/theme/src/index.ts | 1 | // export { default as reset } from "./reset.css"; |
| LOW | js/_website/generate_jsons/chunking.py | 141 | chunks.content.pop(i) |
| LOW | js/_website/generate_jsons/embed.py | 21 | # def embed_and_upload(title, _type, url, contents): |
| LOW | js/_website/generate_jsons/embed.py | 41 | # data = response.json() |
| LOW | js/_website/generate_jsons/embed.py | 61 | # {"role": "user", "content": content} |
| LOW | js/_website/generate_jsons/embed.py | 81 | # chunks = chunker.chunk_page(guide["title"], guide["slug"], description, guide["type"]) |
| LOW | js/_website/generate_jsons/embed.py | 101 | # WHERE type = 'DEMO' |
| LOW | js/_website/generate_jsons/embed.py | 141 | ) |
| LOW | js/preview/src/plugins.ts | 141 | |
| LOW | js/tootils/src/index.ts | 241 | // With the new setup, each testcase launches its own Gradio app. |
| LOW | js/imageeditor/types.ts | 61 | // export let _selectable = false; |
| LOW | scripts/helpers.sh | 21 | ####################################### |
| LOW | scripts/helpers.sh | 41 | } |
| LOW | scripts/helpers.sh | 61 | function aws_required() { |
| LOW | scripts/profile_e2e/run.sh | 1 | #!/usr/bin/env bash |
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | demo/super_html/run.py | 301 | completed.push(index); |
| HIGH | demo/kitchen_sink/run.py | 10 | JSONOBJ = """{"items":{"item":[{"id": "0001","type": null,"is_good": false,"ppu": 0.55,"batters":{"batter":[{ "id": "100 |
| HIGH | gradio/routes.py | 1386 | success, event_id, state = await blocks._queue.push( |
| HIGH | gradio/components/deep_link_button.py | 122 | navigator.clipboard.writeText(currentUrl.toString()); |
| HIGH | …dio/components/custom_html_components/audio_gallery.py | 23 | <div class="audio-label">${labels && labels[i] ? labels[i] : 'Audio ' + (i + 1)}</div> |
| HIGH | …dio/components/custom_html_components/audio_gallery.py | 87 | timeDisplay.textContent = `${minutes}:${seconds.toString().padStart(2, '0')}`; |
| HIGH | gradio/themes/builder_app.py | 858 | if (fonts && Array.isArray(fonts)) { |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | demo/blocks_essay_simple/run.py | 7 | return gr.Textbox(lines=8, visible=True, value="Lorem ipsum dolor sit amet") |
| LOW | demo/blocks_essay_simple/run.py | 7 | return gr.Textbox(lines=8, visible=True, value="Lorem ipsum dolor sit amet") |
| LOW | demo/sentence_builder/run.py | 16 | ["ran", "swam", "ate", "slept"], value=["swam", "slept"], multiselect=True, label="Activity", info="Lorem ip |
| LOW | demo/sentence_builder/run.py | 16 | ["ran", "swam", "ate", "slept"], value=["swam", "slept"], multiselect=True, label="Activity", info="Lorem ip |
| LOW | demo/dataframe_widths/run.py | 8 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit.", |
| LOW | demo/dataframe_widths/run.py | 8 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit.", |
| LOW | demo/blocks_xray/run.py | 15 | With this model you can lorem ipsum |
| LOW | demo/dataset_component/run.py | 11 | ["Lorem ipsum"], |
| LOW | demo/blocks_essay/run.py | 13 | return gr.Textbox(lines=8, visible=True, value="Lorem ipsum dolor sit amet"), gr.Button(interactive=True) |
| LOW | demo/blocks_essay/run.py | 13 | return gr.Textbox(lines=8, visible=True, value="Lorem ipsum dolor sit amet"), gr.Button(interactive=True) |
| LOW | demo/kitchen_sink/run.py | 90 | gr.Textbox(value="Lorem ipsum", label="Textbox"), |
| LOW | test/test_files/xray_config.json | 12 | "value": "# Detect Disease From Scan\nWith this model you can lorem ipsum\n- ipsum 1\n- ipsum 2", |
| LOW | test/test_files/xray_config_diff_ids.json | 12 | "value": "# Detect Disease From Scan\nWith this model you can lorem ipsum\n- ipsum 1\n- ipsum 2", |
| LOW | test/test_files/xray_config_wrong.json | 12 | "value": "# Detect Disease From Scan\nWith this model you can lorem ipsum\n- ipsum 1\n- ipsum 2", |
| LOW | js/markdown/Markdown.stories.svelte | 155 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit ame |
| LOW | js/markdown/Markdown.stories.svelte | 155 | "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit ame |
| LOW | js/spa/test/kitchen_sink.spec.ts | 47 | await expect(textbox).toHaveValue("Lorem ipsum"); |
| LOW | js/spa/test/chatbot_multimodal.spec.ts | 7 | await textbox.fill("Lorem ipsum"); |
| LOW | js/spa/test/chatbot_multimodal.spec.ts | 19 | await expect(user_message).toEqual("Lorem ipsum"); |
| LOW | js/spa/test/blocks_essay.spec.ts | 11 | await expect(textbox).toHaveValue("Lorem ipsum dolor sit amet"); |
| LOW | js/spa/test/blocks_essay.spec.ts | 11 | await expect(textbox).toHaveValue("Lorem ipsum dolor sit amet"); |
| LOW | .agents/skills/gradio/references/examples.md | 14 | return gr.Textbox(lines=8, visible=True, value="Lorem ipsum dolor sit amet") |
| LOW | .agents/skills/gradio/references/examples.md | 14 | return gr.Textbox(lines=8, visible=True, value="Lorem ipsum dolor sit amet") |
| LOW | gradio/test_data/blocks_configs.py | 11 | "value": "<h1>Detect Disease From Scan</h1>\n<p>With this model you can lorem ipsum</p>\n<ul>\n<li>ipsum |
| LOW | gradio/test_data/blocks_configs.py | 362 | "value": "<h1>Detect Disease From Scan</h1>\n<p>With this model you can lorem ipsum</p>\n<ul>\n<li>ipsum |
| LOW | gradio/test_data/blocks_configs.py | 714 | "value": "<h1>Detect Disease From Scan</h1>\n<p>With this model you can lorem ipsum</p>\n<ul>\n<li>ipsum |
| LOW | gradio/layouts/accordion.py | 22 | gr.Markdown("lorem ipsum") |
| LOW | gradio/themes/builder_app.py | 324 | placeholder="John Doe", |
| LOW | gradio/themes/builder_app.py | 325 | value="John Doe", |
| LOW | gradio/themes/builder_app.py | 342 | info="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt |
| LOW | gradio/themes/builder_app.py | 342 | info="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt |
| LOW | gradio/themes/app.py | 37 | placeholder="John Doe", |
| LOW | gradio/themes/app.py | 38 | value="John Doe", |
| LOW | gradio/themes/app.py | 53 | info="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labor |
| LOW | gradio/themes/app.py | 53 | info="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labor |
| LOW | scripts/overwrite_xray_config.py | 24 | With this model you can lorem ipsum |
| LOW | scripts/overwrite_xray_config.py | 63 | With this model you can lorem ipsum |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | demo/mcp_resources_and_prompts/fastmcp.py | 9 | # Create an MCP server |
| MEDIUM | demo/yolov10_webcam_stream/utils.py | 87 | # Create a list of colors for each class where each color is a tuple of 3 integer values |
| MEDIUM | demo/magic_8_ball/run.py | 52 | # Create an audio segment from the numpy array |
| MEDIUM | gradio/route_utils.py | 782 | # Create the parser. |
| MEDIUM | gradio/external.py | 563 | if "allow_flagging" in config: # Create an Interface for Gradio 2.x Spaces |
| MEDIUM | gradio/external.py | 567 | else: # Create a Blocks for Gradio 3.x Spaces |
| MEDIUM | scripts/upload_demo_to_space.py | 38 | # Create the repository if it doesn't exist |
| MEDIUM | scripts/upload_demo_to_space.py | 75 | # Create the repository if it doesn't exist |
| MEDIUM | client/python/gradio_client/client.py | 200 | # Create a pool of threads to handle the requests |
| MEDIUM | client/python/gradio_client/utils.py | 561 | # Create a new copy of the error dict so we |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | js/chatbot/Chatbot.test.ts | 1273 | // ── Visual-only (test.todo) ────────────────────────────────────────── |
| MEDIUM | gradio/_vendor/aiofiles/tempfile/__init__.py | 24 | # ================================================================ |
| MEDIUM | gradio/_vendor/aiofiles/tempfile/__init__.py | 27 | # ================================================================ |
| MEDIUM | gradio/_vendor/aiofiles/tempfile/__init__.py | 159 | # ========================================================= |
| MEDIUM | gradio/_vendor/aiofiles/tempfile/__init__.py | 161 | # ========================================================= |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | demo/chatbot_feedback/run.py | 8 | # Set feedback_value to ["Like"] for the assistant message |
| LOW | test/test_networking.py | 128 | # Check if the path is for a JS module |
| LOW | test/test_interfaces.py | 276 | live=True, # Set live to True for real-time feedback |
| LOW | test/test_docker/conftest.py | 18 | # Check if wheels already exist (e.g., copied from CI artifacts) |
| LOW | gradio/route_utils.py | 355 | # Set parent to None to avoid pickle issues in ZeroGPU |
| LOW | gradio/route_utils.py | 788 | # Write file data, it needs to use await with the UploadFile methods |
| LOW | gradio/utils.py | 526 | try: # Check if running interactively using ipython. |
| LOW | gradio/utils.py | 553 | try: # Check if running interactively using ipython. |
| LOW | gradio/blocks.py | 3091 | # Check if running in a Python notebook in which case, display inline |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | demo/llm_openai/run.py | 2 | # Before running this, make sure you have exported your OpenAI API key as an environment variable: |
| LOW | demo/llm_claude/run.py | 2 | # Before running this, make sure you have exported your Anthropic API key as an environment variable: |
| LOW | demo/llm_minimax/run.py | 2 | # Before running this, make sure you have exported your MiniMax API key as an environment variable: |
| LOW | demo/llm_llamaindex/run.py | 2 | # Before running this, make sure you have exported your OpenAI API key as an environment variable: |
| LOW | demo/llm_langchain/run.py | 2 | # Before running this, make sure you have exported your OpenAI API key as an environment variable: |
| LOW | demo/llm_hyperbolic/run.py | 2 | # Before running this, make sure you have exported your Hyperbolic API key as an environment variable: |
| LOW | demo/llm_sambanova/run.py | 2 | # Before running this, make sure you have exported your SambaNova API key as an environment variable: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | js/plot/shared/plot_types/altair_utils.ts | 83 | d.encoding.color.scale.range = d.encoding.color.scale.range.map( |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | gradio/blocks.py | 365 | # copying the file to the cache and just use the remote file path. |
| LOW | gradio/blocks.py | 405 | # copying the file to the cache and just use the remote file path. |
| LOW | gradio/cli/commands/components/publish.py | 58 | # If anything goes wrong, just return None so we upload all files |
| LOW | gradio/components/video.py | 289 | # to another format and have a watermark added, we can just return the URL |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | test/test_networking.py | 121 | def handle_request(self): |
| LOW | gradio/helpers.py | 681 | def my_function(x, progress=gr.Progress()): |
| LOW | client/python/test/conftest.py | 139 | def my_function(x, progress=gr.Progress()): |
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | test/test_routes.py | 1799 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | gradio/cli/commands/components/_create_utils.py | 411 | ## Example usage |
| LOW | scripts/profile_e2e/run.sh | 4 | # Usage: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | gradio/analytics.py | 139 | # Sometimes the target can be the Blocks object itself, so we need to check if its in blocks.blocks |