Repository Analysis

gradio-app/gradio

Build and share delightful machine learning apps, all in Python. 🌟 Star to support our work!

4.4 Likely human-written View on GitHub
4.4
Adjusted Score
4.4
Raw Score
100%
Time Factor
2026-05-29
Last Push
42,750
Stars
Python
Language
397,797
Lines of Code
2463
Files
1641
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 1HIGH 45MEDIUM 40LOW 1555

Pattern Findings

1641 matches across 19 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers720 hits · 686 pts
SeverityFileLineSnippet
LOWdemo/chicago-bikeshare-dashboard/run.py27def get_most_popular_stations():
LOWdemo/image_editor_sketchpad/run.py4def percent_of_pixels_selected(image):
LOWdemo/navbar_query_params/run.py11def update_dropdown_based_on_query(request: gr.Request):
LOWdemo/super_html/run.py76 def update_templated_html_css(name, color, bold):
LOWdemo/image_editor_inpainting/run.py4def average_inpainting_colors(image):
LOWtest/test_queueing.py78 def test_cached_generator_finishes_on_queue_cache_hit(self, connect):
LOWtest/test_queueing.py106 def test_queue_average_excludes_manual_cache_hits(self, connect):
LOWtest/test_queueing.py144 def test_default_concurrency_limits(self, default_concurrency_limit, statuses):
LOWtest/test_queueing.py173def test_heartbeat_task_cancelled_after_stream_completes():
LOWtest/test_queueing.py227def test_cancel_removes_pending_event_from_queue():
LOWtest/test_components.py32 def test_get_component_instance_rendering(
LOWtest/test_components.py44 def test_no_duplicate_uncased_names(self, io_components):
LOWtest/test_components.py49def test_dataframe_process_example_converts_dataframes():
LOWtest/test_components.py66def test_process_example_returns_file_basename(component):
LOWtest/test_components.py102def test_template_component_configs(io_components):
LOWtest/test_components.py122def test_component_example_values(io_components):
LOWtest/test_components.py131def test_component_example_payloads(io_components):
LOWtest/test_components.py154def test_all_io_components_are_pickleable(io_components):
LOWtest/test_utils.py60 def test_colab_check_no_ipython(self, mock_get_ipython):
LOWtest/test_utils.py65 def test_ipython_check_import_fail(self, mock_get_ipython):
LOWtest/test_utils.py70 def test_ipython_check_no_ipython(self, mock_get_ipython):
LOWtest/test_utils.py74 def test_download_if_url_doesnt_crash_on_connection_error(self):
LOWtest/test_utils.py99 def test_download_if_url_correct_parse(self):
LOWtest/test_utils.py104 def test_is_hosted_notebook_false(self):
LOWtest/test_utils.py107 def test_kaggle_check_true_when_run_type_set(self):
LOWtest/test_utils.py114def test_assert_configs_are_equivalent():
LOWtest/test_utils.py862 def test_function_with_no_docstring(self):
LOWtest/test_utils.py871 def test_function_with_no_parameters(self):
LOWtest/test_utils.py881 def test_function_with_alternate_parameter_section(self):
LOWtest/test_utils.py990 def test_unload_registered_last(self):
LOWtest/test_utils.py999 def test_unload_registered_first(self):
LOWtest/test_utils.py1008 def test_unload_registered_in_middle(self):
LOWtest/test_utils.py1018 def test_no_unload_no_heartbeat(self):
LOWtest/test_utils.py1026 def test_per_session_manual_cache_connects_heartbeat(self):
LOWtest/test_utils.py1091 async def test_aclose_retries_on_already_executing(self):
LOWtest/test_utils.py1101 async def test_aclose_timeout_raises(self):
LOWtest/test_utils.py1110 async def test_aclose_raises_other_value_error(self):
LOWtest/test_utils.py162 def test_format_ner_list_standard(self):
LOWtest/test_utils.py177 def test_format_ner_list_empty(self):
LOWtest/test_utils.py276 def test_abspath_symlink_path(self):
LOWtest/test_utils.py320 def test_get_type_hints_with_unresolvable_forward_ref(self):
LOWtest/test_utils.py329 def test_is_special_typed_parameter(self):
LOWtest/test_utils.py340 def test_is_special_typed_parameter_with_pipe(self):
LOWtest/test_utils.py351 def test_check_function_inputs_match(self):
LOWtest/test_utils.py400def test_is_in_or_equal_posix_specific_paths():
LOWtest/test_utils.py440def test_is_in_or_equal_fuzzer(path_1, path_2):
LOWtest/test_utils.py459def test_is_allowed_file_fuzzer(
LOWtest/test_utils.py500def is_allowed_file_corner_cases(path, blocked_paths, allowed_paths, result):
LOWtest/test_utils.py521def test_is_in_or_equal_edge_cases(path_1, path_2, expected):
LOWtest/test_utils.py534def test_get_extension_from_file_path_or_url(path_or_url, extension):
LOWtest/test_utils.py623 def test_function_with_kwargs(self):
LOWtest/test_utils.py629 def test_function_with_special_args(self):
LOWtest/test_utils.py646 def test_class_method_skip_first_param(self):
LOWtest/test_utils.py656 def test_static_method_no_skip(self):
LOWtest/test_utils.py667 def test_class_method_with_args(self):
LOWtest/test_utils.py765 def test_safe_deepcopy_custom_object(self):
LOWtest/test_utils.py776 def test_safe_deepcopy_handles_undeepcopyable(self):
LOWtest/test_utils.py819 def test_basic_function_description(self):
LOWtest/test_utils.py836 def test_function_with_extended_returns(self):
LOWtest/test_utils.py895 def test_function_with_arguments_section(self):
660 more matches not shown…
Unused Imports442 hits · 358 pts
SeverityFileLineSnippet
LOWdemo/random_demos.py7
LOWdemo/many_tabs/run.py3
LOWdemo/blocks_inputs/run.py2
LOWdemo/login_with_huggingface/run.py1
LOWdemo/state_cleanup/run.py1
LOWdemo/stream_audio_out/run.py4
LOWdemo/theme_new_step_3/run.py1
LOWdemo/theme_new_step_2/run.py1
LOWdemo/clear_components/run.py3
LOWdemo/iframe_resizer/run.py3
LOWdemo/kitchen_sink/run.py1
LOWtest/test_utils.py1
LOWjs/_website/generate_jsons/embed.py3
LOWjs/_website/generate_jsons/embed.py4
LOWjs/_website/generate_jsons/embed.py5
LOWjs/_website/generate_jsons/embed.py7
LOWjs/_website/generate_jsons/embed.py8
LOWjs/_website/generate_jsons/src/docs/__init__.py6
LOWjs/_website/generate_jsons/src/docs/__init__.py7
LOWjs/_website/generate_jsons/src/docs/__init__.py12
LOWjs/_website/generate_jsons/src/docs/__init__.py13
LOWjs/preview/test/test/backend/gradio_test/__init__.py2
LOWgradio/flagging.py1
LOWgradio/image_utils.py1
LOWgradio/server.py3
LOWgradio/renderable.py1
LOWgradio/node_server.py1
LOWgradio/events.py4
LOWgradio/block_function.py1
LOWgradio/queueing.py1
LOWgradio/route_utils.py1
LOWgradio/validators.py6
LOWgradio/processing_utils.py1
LOWgradio/state_holder.py1
LOWgradio/interface.py5
LOWgradio/component_meta.py1
LOWgradio/chat_interface.py5
LOWgradio/__init__.py1
LOWgradio/__init__.py3
LOWgradio/__init__.py4
LOWgradio/__init__.py5
LOWgradio/__init__.py6
LOWgradio/__init__.py7
LOWgradio/__init__.py7
LOWgradio/__init__.py7
LOWgradio/__init__.py7
LOWgradio/__init__.py7
LOWgradio/__init__.py8
LOWgradio/__init__.py9
LOWgradio/__init__.py9
LOWgradio/__init__.py10
LOWgradio/__init__.py11
LOWgradio/__init__.py12
LOWgradio/__init__.py12
LOWgradio/__init__.py12
LOWgradio/__init__.py12
LOWgradio/__init__.py12
LOWgradio/__init__.py12
LOWgradio/__init__.py12
LOWgradio/__init__.py12
382 more matches not shown…
Deep Nesting179 hits · 168 pts
SeverityFileLineSnippet
LOWdemo/chatbot_core_components_simple/run.py31
LOWdemo/calculator_live/run.py3
LOWdemo/dialogue_diarization_demo/run.py22
LOWdemo/image_segmentation/run.py32
LOWdemo/calculator/run.py3
LOWdemo/mini_leaderboard/run.py102
LOWdemo/outbreak_forecast/run.py6
LOWdemo/bar_plot/run.py53
LOWdemo/cache_demo/run.py55
LOWdemo/chatbot_core_components/run.py160
LOWdemo/dashboard/helpers.py68
LOWdemo/calculator_blocks/run.py3
LOWdemo/calculator_blocks_cached/run.py3
LOWdemo/line_plot/run.py40
LOWtest/test_queueing.py173
LOWtest/test_queueing.py227
LOWtest/test_components.py131
LOWtest/test_node_proxy.py272
LOWtest/test_node_proxy.py300
LOWtest/test_networking.py68
LOWtest/test_networking.py121
LOWtest/test_blocks.py2064
LOWtest/test_routes.py2223
LOWtest/test_docker/conftest.py74
LOWtest/test_docker/conftest.py77
LOW…everse_proxy_root_path/test_reverse_proxy_root_path.py45
LOW…t/test_docker/test_reverse_proxy/test_reverse_proxy.py45
LOW…roxy_fastapi_mount/test_reverse_proxy_fastapi_mount.py45
LOW…oot_path/test_reverse_proxy_fastapi_mount_root_path.py58
LOWjs/_website/generate_jsons/chunking.py22
LOWjs/_website/generate_jsons/src/docs/__init__.py51
LOWjs/_website/generate_jsons/src/docs/__init__.py68
LOWjs/_website/generate_jsons/src/docs/__init__.py87
LOWjs/_website/generate_jsons/src/docs/__init__.py115
LOWjs/_website/generate_jsons/src/docs/__init__.py143
LOWgradio/flagging.py241
LOWgradio/image_utils.py48
LOWgradio/image_utils.py84
LOWgradio/image_utils.py113
LOWgradio/image_utils.py263
LOWgradio/node_server.py199
LOWgradio/tunneling.py83
LOWgradio/queueing.py279
LOWgradio/queueing.py521
LOWgradio/queueing.py585
LOWgradio/queueing.py631
LOWgradio/queueing.py669
LOWgradio/queueing.py787
LOWgradio/route_utils.py268
LOWgradio/route_utils.py981
LOWgradio/route_utils.py758
LOWgradio/processing_utils.py422
LOWgradio/processing_utils.py542
LOWgradio/processing_utils.py711
LOWgradio/processing_utils.py762
LOWgradio/processing_utils.py450
LOWgradio/processing_utils.py570
LOWgradio/processing_utils.py860
LOWgradio/interface.py84
LOWgradio/interface.py555
119 more matches not shown…
Excessive Try-Catch Wrapping131 hits · 154 pts
SeverityFileLineSnippet
LOWdemo/dialogue_diarization_demo/run.py60 except Exception as e:
MEDIUMdemo/dialogue_diarization_demo/run.py61 print(f"Error in diarization: {str(e)}")
LOWdemo/dialogue_diarization_demo/run.py73 except Exception as e:
LOWdemo/all_demos/run.py26 except Exception as e:
LOWdemo/depth_estimation/run.py41 except Exception:
MEDIUMdemo/depth_estimation/run.py47 print("Error reconstructing 3D model")
MEDIUMtest/test_utils.py425def my_check(path_1, path_2):
LOWtest/test_utils.py448 except Exception as e:
LOWtest/test_node_proxy.py209 except Exception:
LOWtest/test_node_proxy.py213 except Exception:
LOWtest/test_networking.py212 except Exception as e:
MEDIUMtest/test_networking.py213 print(f"Error processing HTML: {str(e)}")
LOWtest/test_networking.py258 except Exception as e:
LOWtest/test_networking.py294 except Exception:
LOWtest/test_docker/conftest.py117 except Exception as e:
LOWtest/test_docker/conftest.py169 except Exception as e:
MEDIUMtest/test_docker/conftest.py170 print(f"Error during service check: {e}")
LOWtest/test_docker/conftest.py180 except Exception as e:
MEDIUMtest/test_docker/conftest.py181 print(f"Error during cleanup: {e}")
LOWjs/_website/generate_jsons/generate.py26 except Exception as e:
MEDIUMjs/_website/generate_jsons/generate.py27 print(f"Error listing objects in bucket {bucket_name}: {e}")
LOWjs/_website/generate_jsons/generate.py40 except Exception as e:
MEDIUMjs/_website/generate_jsons/generate.py41 print(f"Error downloading {s3_key}: {e}")
LOWjs/preview/src/examine.py74 except Exception as e:
LOWgradio/flagging.py277 except Exception:
LOWgradio/flagging.py416 except Exception as e:
MEDIUMgradio/flagging.py417 print(f"Error while flagging: {e}")
LOWgradio/image_utils.py197 except Exception:
LOWgradio/image_utils.py309 except Exception:
LOWgradio/node_server.py165 except Exception as e:
LOWgradio/node_server.py195 except Exception:
LOWgradio/node_server.py222 except Exception:
LOWgradio/block_function.py11except Exception:
LOWgradio/queueing.py171 except Exception as e:
LOWgradio/queueing.py370 except Exception as e:
LOWgradio/queueing.py449 except Exception:
LOWgradio/queueing.py882 except Exception as e:
LOWgradio/queueing.py969 except Exception as e:
LOWgradio/queueing.py1043 except Exception as e:
LOWgradio/queueing.py1093 except Exception:
MEDIUMgradio/queueing.py521def start_processing(self) -> None:
LOWgradio/route_utils.py890 except Exception:
LOWgradio/route_utils.py1208 except Exception as e:
MEDIUMgradio/processing_utils.py1110 print(f"Error converting video to browser-playable format {str(e)}")
LOWgradio/screen_recording_utils.py176 except Exception:
LOWgradio/screen_recording_utils.py326 except Exception:
LOWgradio/external_utils.py152 except Exception as e:
LOWgradio/external_utils.py248 except Exception as e:
LOWgradio/external_utils.py254 except Exception:
LOWgradio/external_utils.py428 except Exception as e:
LOWgradio/caching.py153 except Exception:
MEDIUMgradio/caching.py146def _get_session_hash() -> str | None:
MEDIUMgradio/mcp.py741def handle_sse(request):
LOWgradio/mcp.py752 except Exception as e:
LOWgradio/mcp.py1117 except Exception:
LOWgradio/networking.py41 except Exception as e:
LOWgradio/networking.py49 except Exception as e:
MEDIUMgradio/utils.py102def get_package_version() -> str:
MEDIUMgradio/utils.py128def safe_get_stop_event() -> asyncio.Event:
LOWgradio/utils.py110 except Exception:
71 more matches not shown…
Cross-File Repetition22 hits · 110 pts
SeverityFileLineSnippet
HIGHCHANGELOG.md0# state cleanup demo 🖼️ images are saved in a user-specific directory and deleted when the users closes the page via dem
HIGHdemo/state_cleanup/run.py0# state cleanup demo 🖼️ images are saved in a user-specific directory and deleted when the users closes the page via dem
HIGHgradio/CHANGELOG.md0# state cleanup demo 🖼️ images are saved in a user-specific directory and deleted when the users closes the page via dem
HIGHclient/python/CHANGELOG.md0# state cleanup demo 🖼️ images are saved in a user-specific directory and deleted when the users closes the page via dem
HIGHclient/python/gradio_client/CHANGELOG.md0# state cleanup demo 🖼️ images are saved in a user-specific directory and deleted when the users closes the page via dem
HIGHclient/js/CHANGELOG.md0# state cleanup demo 🖼️ images are saved in a user-specific directory and deleted when the users closes the page via dem
HIGHCHANGELOG.md0# hello world! start typing below to see the output.
HIGHdemo/blocks_hello/run.py0# hello world! start typing below to see the output.
HIGH.agents/skills/gradio/references/examples.md0# hello world! start typing below to see the output.
HIGHgradio/CHANGELOG.md0# hello world! start typing below to see the output.
HIGHdemo/blocks_xray/run.py0# detect disease from scan with this model you can lorem ipsum - ipsum 1 - ipsum 2
HIGHscripts/overwrite_xray_config.py0# detect disease from scan with this model you can lorem ipsum - ipsum 1 - ipsum 2
HIGHscripts/overwrite_xray_config.py0# detect disease from scan with this model you can lorem ipsum - ipsum 1 - ipsum 2
HIGHtest/components/test_chatbot.py0test prose at the start followed by thinking blocks
HIGHtest/components/test_chatbot.py0test prose at the start followed by thinking blocks
HIGHtest/components/test_chatbot.py0test prose at the start followed by thinking blocks
HIGHgradio/components/textbox.py0parameters: payload: the text entered in the textarea. returns: passes text value as a {str} into the function.
HIGHgradio/components/datetime.py0parameters: payload: the text entered in the textarea. returns: passes text value as a {str} into the function.
HIGHgradio/_simple_templates/simpletextbox.py0parameters: payload: the text entered in the textarea. returns: passes text value as a {str} into the function.
HIGHgradio/components/base.py0convert the data from the csv or jsonl file into the component state.
HIGHgradio/components/base.py0convert the data from the csv or jsonl file into the component state.
HIGHguides/08_custom-components/04_backend.md0convert the data from the csv or jsonl file into the component state.
Docstring Block Structure16 hits · 80 pts
SeverityFileLineSnippet
HIGHtest/test_utils.py838This is a test function. Args: param1: First parameter param2: Second parame
HIGHgradio/media.py38 Internal function to get the path to a media file. Args: media_type: Type of media (images, videos, au
HIGHgradio/media.py76 Get path to an image file. Args: filename: Filename of the image (e.g., "tower.jpg"). If None, returns
HIGHgradio/media.py93 Get path to a video file. Args: filename: Filename of the video (e.g., "world.mp4"). If None, returns
HIGHgradio/media.py110 Get path to an audio file. Args: filename: Filename of the audio (e.g., "cantina.wav"). If None, retur
HIGHgradio/media.py127 Get path to a 3D model file. Args: filename: Filename of the 3D model (e.g., "Duck.glb"). If None, ret
HIGHgradio/media.py144 Get path to a data file (CSV, JSON, text, etc.). Args: filename: Filename of the data file (e.g., "tit
HIGHgradio/utils.py821 Runs coroutines in background. Warning, be careful to not use this function in other than FastAPI scope, becau
HIGHgradio/utils.py1912 Get the description of a function, its parameters, and return values by parsing the docstring. The docstring sh
HIGHgradio/blocks.py2574 Launches a simple web server that serves the demo. Can also be used to create a public link used by any
HIGHgradio/external.py54 Constructs a Gradio app automatically from a Hugging Face model/Space repo name or a 3rd-party API provider. Note t
HIGHgradio/external.py939 Load a Gradio app from an OpenAPI v3 specification. Parameters: openapi_spec: URL, file path, or dicti
HIGHgradio/data_classes.py298 Copies the file to a specified directory and returns a new FileData object representing the copied file.
HIGHguides/10_mcp/01_building-mcp-server-with-gradio.md155Make a request to everyone's favorite API. Args: prompt: The prompt to send to the API. Returns:
HIGHclient/python/gradio_client/client.py480 Calls the Gradio API and returns the result (this is a blocking call). Arguments can be provided as positional
HIGHclient/python/gradio_client/client.py521 Creates and returns a Job object which calls the Gradio API in a background thread. The job can be used to retr
Over-Commented Block44 hits · 44 pts
SeverityFileLineSnippet
LOWdemo/scatter_plot/run.py1import gradio as gr
LOWdemo/line_plot/run.py21# [
LOW.config/playwright/index.ts1// Import styles, initialize component theme here.
LOWtest/test_theme_sharing.py281 def test_get_next_version(self, mock):
LOWtest/requirements.txt1# This file was autogenerated by uv via the following command:
LOWtest/requirements.txt21 # via
LOWtest/requirements.txt41 # via typer-slim
LOWtest/requirements.txt61 # via pydantic
LOWtest/requirements.txt81fsspec==2024.12.0
LOWtest/requirements.txt101 # tokenizers
LOWtest/requirements.txt121jedi==0.19.2
LOWtest/requirements.txt141kiwisolver==1.4.8
LOWtest/requirements.txt161numpy==2.2.2
LOWtest/requirements.txt181 # pytest
LOWtest/requirements.txt201polars==1.31.0
LOWtest/requirements.txt221 # via build
LOWtest/requirements.txt241pyyaml==6.0.2
LOWtest/requirements.txt261 # jsonschema
LOWtest/requirements.txt281sortedcontainers==2.4.0
LOWtest/requirements.txt301 # via -r test/requirements.in
LOWtest/requirements.txt321 # via
LOWtest/requirements.txt341 # botocore
LOWtest/tmp/tmp.txt1# tmp files saved here
LOWjs/core/src/stores.ts1import { type Writable, writable, get } from "svelte/store";
LOWjs/utils/src/utils.svelte.ts541 }
LOWjs/spa/test/components.test.ts101 show_select_all: false
LOWjs/spa/test/components.test.ts121 // [
LOWjs/row/Index.svelte1<script lang="ts">
LOWjs/_spaces-test/vite.config.js101 // discloseVersion: false,
LOWjs/theme/src/index.ts1// export { default as reset } from "./reset.css";
LOWjs/_website/generate_jsons/chunking.py141 chunks.content.pop(i)
LOWjs/_website/generate_jsons/embed.py21# def embed_and_upload(title, _type, url, contents):
LOWjs/_website/generate_jsons/embed.py41# data = response.json()
LOWjs/_website/generate_jsons/embed.py61# {"role": "user", "content": content}
LOWjs/_website/generate_jsons/embed.py81# chunks = chunker.chunk_page(guide["title"], guide["slug"], description, guide["type"])
LOWjs/_website/generate_jsons/embed.py101# WHERE type = 'DEMO'
LOWjs/_website/generate_jsons/embed.py141 )
LOWjs/preview/src/plugins.ts141
LOWjs/tootils/src/index.ts241 // With the new setup, each testcase launches its own Gradio app.
LOWjs/imageeditor/types.ts61// export let _selectable = false;
LOWscripts/helpers.sh21#######################################
LOWscripts/helpers.sh41}
LOWscripts/helpers.sh61function aws_required() {
LOWscripts/profile_e2e/run.sh1#!/usr/bin/env bash
Cross-Language Confusion7 hits · 35 pts
SeverityFileLineSnippet
HIGHdemo/super_html/run.py301 completed.push(index);
HIGHdemo/kitchen_sink/run.py10JSONOBJ = """{"items":{"item":[{"id": "0001","type": null,"is_good": false,"ppu": 0.55,"batters":{"batter":[{ "id": "100
HIGHgradio/routes.py1386 success, event_id, state = await blocks._queue.push(
HIGHgradio/components/deep_link_button.py122 navigator.clipboard.writeText(currentUrl.toString());
HIGH…dio/components/custom_html_components/audio_gallery.py23 <div class="audio-label">${labels && labels[i] ? labels[i] : 'Audio ' + (i + 1)}</div>
HIGH…dio/components/custom_html_components/audio_gallery.py87 timeDisplay.textContent = `${minutes}:${seconds.toString().padStart(2, '0')}`;
HIGHgradio/themes/builder_app.py858 if (fonts && Array.isArray(fonts)) {
Fake / Example Data37 hits · 33 pts
SeverityFileLineSnippet
LOWdemo/blocks_essay_simple/run.py7 return gr.Textbox(lines=8, visible=True, value="Lorem ipsum dolor sit amet")
LOWdemo/blocks_essay_simple/run.py7 return gr.Textbox(lines=8, visible=True, value="Lorem ipsum dolor sit amet")
LOWdemo/sentence_builder/run.py16 ["ran", "swam", "ate", "slept"], value=["swam", "slept"], multiselect=True, label="Activity", info="Lorem ip
LOWdemo/sentence_builder/run.py16 ["ran", "swam", "ate", "slept"], value=["swam", "slept"], multiselect=True, label="Activity", info="Lorem ip
LOWdemo/dataframe_widths/run.py8 "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
LOWdemo/dataframe_widths/run.py8 "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
LOWdemo/blocks_xray/run.py15With this model you can lorem ipsum
LOWdemo/dataset_component/run.py11 ["Lorem ipsum"],
LOWdemo/blocks_essay/run.py13 return gr.Textbox(lines=8, visible=True, value="Lorem ipsum dolor sit amet"), gr.Button(interactive=True)
LOWdemo/blocks_essay/run.py13 return gr.Textbox(lines=8, visible=True, value="Lorem ipsum dolor sit amet"), gr.Button(interactive=True)
LOWdemo/kitchen_sink/run.py90 gr.Textbox(value="Lorem ipsum", label="Textbox"),
LOWtest/test_files/xray_config.json12 "value": "# Detect Disease From Scan\nWith this model you can lorem ipsum\n- ipsum 1\n- ipsum 2",
LOWtest/test_files/xray_config_diff_ids.json12 "value": "# Detect Disease From Scan\nWith this model you can lorem ipsum\n- ipsum 1\n- ipsum 2",
LOWtest/test_files/xray_config_wrong.json12 "value": "# Detect Disease From Scan\nWith this model you can lorem ipsum\n- ipsum 1\n- ipsum 2",
LOWjs/markdown/Markdown.stories.svelte155 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit ame
LOWjs/markdown/Markdown.stories.svelte155 "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed non risus. Suspendisse lectus tortor, dignissim sit ame
LOWjs/spa/test/kitchen_sink.spec.ts47 await expect(textbox).toHaveValue("Lorem ipsum");
LOWjs/spa/test/chatbot_multimodal.spec.ts7 await textbox.fill("Lorem ipsum");
LOWjs/spa/test/chatbot_multimodal.spec.ts19 await expect(user_message).toEqual("Lorem ipsum");
LOWjs/spa/test/blocks_essay.spec.ts11 await expect(textbox).toHaveValue("Lorem ipsum dolor sit amet");
LOWjs/spa/test/blocks_essay.spec.ts11 await expect(textbox).toHaveValue("Lorem ipsum dolor sit amet");
LOW.agents/skills/gradio/references/examples.md14 return gr.Textbox(lines=8, visible=True, value="Lorem ipsum dolor sit amet")
LOW.agents/skills/gradio/references/examples.md14 return gr.Textbox(lines=8, visible=True, value="Lorem ipsum dolor sit amet")
LOWgradio/test_data/blocks_configs.py11 "value": "<h1>Detect Disease From Scan</h1>\n<p>With this model you can lorem ipsum</p>\n<ul>\n<li>ipsum
LOWgradio/test_data/blocks_configs.py362 "value": "<h1>Detect Disease From Scan</h1>\n<p>With this model you can lorem ipsum</p>\n<ul>\n<li>ipsum
LOWgradio/test_data/blocks_configs.py714 "value": "<h1>Detect Disease From Scan</h1>\n<p>With this model you can lorem ipsum</p>\n<ul>\n<li>ipsum
LOWgradio/layouts/accordion.py22 gr.Markdown("lorem ipsum")
LOWgradio/themes/builder_app.py324 placeholder="John Doe",
LOWgradio/themes/builder_app.py325 value="John Doe",
LOWgradio/themes/builder_app.py342 info="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt
LOWgradio/themes/builder_app.py342 info="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt
LOWgradio/themes/app.py37 placeholder="John Doe",
LOWgradio/themes/app.py38 value="John Doe",
LOWgradio/themes/app.py53 info="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labor
LOWgradio/themes/app.py53 info="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labor
LOWscripts/overwrite_xray_config.py24 With this model you can lorem ipsum
LOWscripts/overwrite_xray_config.py63 With this model you can lorem ipsum
Self-Referential Comments10 hits · 26 pts
SeverityFileLineSnippet
MEDIUMdemo/mcp_resources_and_prompts/fastmcp.py9# Create an MCP server
MEDIUMdemo/yolov10_webcam_stream/utils.py87# Create a list of colors for each class where each color is a tuple of 3 integer values
MEDIUMdemo/magic_8_ball/run.py52 # Create an audio segment from the numpy array
MEDIUMgradio/route_utils.py782 # Create the parser.
MEDIUMgradio/external.py563 if "allow_flagging" in config: # Create an Interface for Gradio 2.x Spaces
MEDIUMgradio/external.py567 else: # Create a Blocks for Gradio 3.x Spaces
MEDIUMscripts/upload_demo_to_space.py38 # Create the repository if it doesn't exist
MEDIUMscripts/upload_demo_to_space.py75 # Create the repository if it doesn't exist
MEDIUMclient/python/gradio_client/client.py200 # Create a pool of threads to handle the requests
MEDIUMclient/python/gradio_client/utils.py561 # Create a new copy of the error dict so we
Decorative Section Separators5 hits · 15 pts
SeverityFileLineSnippet
MEDIUMjs/chatbot/Chatbot.test.ts1273// ── Visual-only (test.todo) ──────────────────────────────────────────
MEDIUMgradio/_vendor/aiofiles/tempfile/__init__.py24# ================================================================
MEDIUMgradio/_vendor/aiofiles/tempfile/__init__.py27# ================================================================
MEDIUMgradio/_vendor/aiofiles/tempfile/__init__.py159# =========================================================
MEDIUMgradio/_vendor/aiofiles/tempfile/__init__.py161# =========================================================
Redundant / Tautological Comments9 hits · 12 pts
SeverityFileLineSnippet
LOWdemo/chatbot_feedback/run.py8 # Set feedback_value to ["Like"] for the assistant message
LOWtest/test_networking.py128 # Check if the path is for a JS module
LOWtest/test_interfaces.py276 live=True, # Set live to True for real-time feedback
LOWtest/test_docker/conftest.py18 # Check if wheels already exist (e.g., copied from CI artifacts)
LOWgradio/route_utils.py355 # Set parent to None to avoid pickle issues in ZeroGPU
LOWgradio/route_utils.py788 # Write file data, it needs to use await with the UploadFile methods
LOWgradio/utils.py526 try: # Check if running interactively using ipython.
LOWgradio/utils.py553 try: # Check if running interactively using ipython.
LOWgradio/blocks.py3091 # Check if running in a Python notebook in which case, display inline
Slop Phrases7 hits · 10 pts
SeverityFileLineSnippet
LOWdemo/llm_openai/run.py2# Before running this, make sure you have exported your OpenAI API key as an environment variable:
LOWdemo/llm_claude/run.py2# Before running this, make sure you have exported your Anthropic API key as an environment variable:
LOWdemo/llm_minimax/run.py2# Before running this, make sure you have exported your MiniMax API key as an environment variable:
LOWdemo/llm_llamaindex/run.py2# Before running this, make sure you have exported your OpenAI API key as an environment variable:
LOWdemo/llm_langchain/run.py2# Before running this, make sure you have exported your OpenAI API key as an environment variable:
LOWdemo/llm_hyperbolic/run.py2# Before running this, make sure you have exported your Hyperbolic API key as an environment variable:
LOWdemo/llm_sambanova/run.py2# Before running this, make sure you have exported your SambaNova API key as an environment variable:
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippet
CRITICALjs/plot/shared/plot_types/altair_utils.ts83 d.encoding.color.scale.range = d.encoding.color.scale.range.map(
AI Slop Vocabulary4 hits · 6 pts
SeverityFileLineSnippet
LOWgradio/blocks.py365 # copying the file to the cache and just use the remote file path.
LOWgradio/blocks.py405 # copying the file to the cache and just use the remote file path.
LOWgradio/cli/commands/components/publish.py58 # If anything goes wrong, just return None so we upload all files
LOWgradio/components/video.py289 # to another format and have a watermark added, we can just return the URL
Overly Generic Function Names3 hits · 2 pts
SeverityFileLineSnippet
LOWtest/test_networking.py121 def handle_request(self):
LOWgradio/helpers.py681 def my_function(x, progress=gr.Progress()):
LOWclient/python/test/conftest.py139 def my_function(x, progress=gr.Progress()):
Dead Code1 hit · 2 pts
SeverityFileLineSnippet
MEDIUMtest/test_routes.py1799
Example Usage Blocks2 hits · 2 pts
SeverityFileLineSnippet
LOWgradio/cli/commands/components/_create_utils.py411## Example usage
LOWscripts/profile_e2e/run.sh4# Usage:
Verbosity Indicators1 hit · 2 pts
SeverityFileLineSnippet
LOWgradio/analytics.py139 # Sometimes the target can be the Blocks object itself, so we need to check if its in blocks.blocks