gradioBuild and deploy ML demo interfaces with proper state management, queuing, and production patterns.
Install via ClawdBot CLI:
clawdbot install ivangdavila/gradioRequires:
gr.Interface is for single-function demos โ use gr.Blocks for anything with multiple steps, conditional UI, or custom layout.click(), .change(), .submit() event handlers โ Interface only has one functiongr.State() creates per-session state โ it resets when the user refreshes the pagefn(state) -> state โ forgetting the output loses updatesgr.State() for user-specific data.queue(), long-running functions block all other users โ always call demo.queue() before .launch()concurrency_limit=1 on a function serializes calls โ use for GPU-bound inference that can't parallelizemax_size in queue limits waiting users โ without it, memory grows unbounded under loadyield enable streaming โ but they hold a queue slot until completegr.File(type="binary") returns bytes, type="filepath" returns a string path โ mismatching causes silent failuresgr.File(value="path/to/file") for downloads, not raw bytes โ the component handles content-disposition headersmax_file_size in launch() to change itgr.Dropdown(value=None) with allow_custom_value=False crashes if the user submits nothing โ set a default or make it optionalgr.Image(type="pil") returns a PIL Image, type="numpy" returns an array, type="filepath" returns a path โ inconsistent inputs break functionsgr.Chatbot expects list of tuples [(user, bot), ...] โ returning just strings doesn't rendervisible=False components still run their functions โ use gr.update(interactive=False) to disable without hidingauth=("user", "pass") is plaintext in code โ use auth=auth_function for production with proper credential checkingshare=True with auth still exposes auth to Gradio's servers โ use your own tunnel for sensitive appsshare=True creates a 72-hour public URL through Gradio's servers โ not for production, just demosserver_name="0.0.0.0" to accept external connections โ default 127.0.0.1 only allows localhostroot_path="/subpath" or assets and API routes breakgr.update(value=x, visible=True) to modify component properties โ returning just the value only changes value.then() for sequential operations โ parallel .click() handlers raceevery=5 on a function polls every 5 seconds โ but it holds connections open, scale carefullytrigger_mode="once" prevents double-clicks from firing twice โ default allows rapid duplicate submissionscache_examples=True pre-computes example outputs at startup โ speeds up demos but increases load timegr.State with initializationbatch=True with max_batch_size=N groups concurrent requests โ essential for GPU throughputAI Usage Analysis
Analysis is being generatedโฆ refresh in a few seconds.
Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.
Humanize AI-generated text to bypass detection. This humanizer rewrites ChatGPT, Claude, and GPT content to sound natural and pass AI detectors like GPTZero,...
Collaborative thinking partner for exploring complex problems through questioning
Humanize AI-generated text by detecting and removing patterns typical of LLM output. Rewrites text to sound natural, specific, and human. Uses 24 pattern detectors, 500+ AI vocabulary terms across 3 tiers, and statistical analysis (burstiness, type-token ratio, readability) for comprehensive detection. Use when asked to humanize text, de-AI writing, make content sound more natural/human, review writing for AI patterns, score text for AI detection, or improve AI-generated drafts. Covers content, language, style, communication, and filler categories.
ๆ นๆฎ็จๆท็ๅ่ฝ้ๆฑ๏ผๅฎๆไธ VeADK ็ธๅ ณ็ๅ่ฝใ
Use this skill to query your Google NotebookLM notebooks directly from Claude Code for source-grounded, citation-backed answers from Gemini. Browser automation, library management, persistent auth. Drastically reduced hallucinations through document-only responses.