gradio
c8c17f1a - Add gr.Dialogue component (#11092)

Commit
132 days ago
Add gr.Dialogue component (#11092) * Commit * add changeset * Add code * rename * lint * lint * typecheck * Add code * change to github url (#11083) * chore: update versions (#11077) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * fix: ensure all translation files work as expected (#11088) * fix: ensure all translation files work as expected * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Fix scaling issue when setting height in Image component (#11091) * Fix scaling issue when setting height in Image component * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Update client.py to always send file data, even for files without extensions (#11093) * Update client.py to always send file data, even for files without extensions Fixes #10775 * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * chore: update versions (#11089) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * Adding requirements for mcp (#11096) * changes * changes * changes * changes * Fix #10320: Chatbot - Ensure all messages in a group are editable (#11097) * Fix #10320: Chatbot - Ensure all messages in a group are editable Previously, only the first message in a group from the same sender was editable. This happened because message.svelte rendered a single textarea for the group, and ChatBot.svelte only updated the first message. Now, edit_message is a list (edit_messages), storing edits for all messages in the group. Each message gets its own textarea, and on submit, handle_action is executed for each message in the group, ensuring all are updated correctly. Also, added an end-to-end test to verify this behavior, modifying the demo to allow adding messages only for the user. * add changeset * format + notebooks --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Dawood <dawoodkhan82@gmail.com> * Let Gradio apps also be MCP Servers (#10984) * changes * testing * add changeset * changes * changes * changes * add changeset * changes * changes * revert demo * changes * fixes * changes * format * changes * changes * format * notebook * lcean * format * format * add changeset * add changeset * changes * changes * changes * changes * changes * format * changes * changes * changes * changes * add changeset * Changes * changes * changes * changes * changes * changes * changes * add changeset * hygiene * next * changes * changes * changes * changes * changes * changes * changes * add demo * changes * changes * changes * changes * changes * changes * changes * changes * changes * changes * changes * changes * revert demos * changes * changes * format * fix utils * changes * format * changes * more tests * changes * changes * changes * changes * pydantic * changes * change * mcp * calculator * remove base64 * changes * changes * changes * changes * add changeset * changes * add changeset * guide * changes * changes * guides * change * changes * changes * guide * changes * changes * changes * changes * tests * reqs * fix * change * changes * changes * changes * changes * changes * changes * fixes * fixes * changes * format * guide --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * chore: update versions (#11100) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * switch to correct link (#11104) * Fix #10281: Dragging image replaces existing instead of opening new tab (#11098) * Fix #10281: Dragging image replaces existing instead of opening new tab I updated the drag and drop event handlers in the imageUploader component (on_drag_over and on_drop) to clear the existing image before processing the newly dropped file. Additionally, I modified an end-to-end test to verify that the number of browser tabs remains the same after dropping a new file. * add changeset * Apply code review suggestions: rename to snake_case and reuse is_valid_file --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Freddy Boulton <41651716+freddyaboulton@users.noreply.github.com> * Update MCP docs (#11106) * update docs * change * add schema url * Fix file upload progress (#11102) * Fix * ready * add changeset * Fix * add changeset * Update gradio/routes.py Co-authored-by: Abubakar Abid <abubakar@huggingface.co> --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Abubakar Abid <abubakar@huggingface.co> * Add `openapi.json` route for Gradio apps as well as docs on the "view API" page (#11103) * add route * add changeset * add changeset * add test * changes * changes * changes * changes * changes * changes * add more images/videos * Update guides/04_additional-features/07_sharing-your-app.md Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com> * Update guides/04_additional-features/14_view-api-page.md Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com> --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com> * Fix gradio cc environment (#11111) * Add code * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Fix passing datetime.datetime instance to gr.Datetime (#11112) * Fix datetime * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * update STDIO instructions to specify sse-only transport (#11115) * update STDIO instructions to specify sse-only transport * formatter * fix * add changeset --------- Co-authored-by: Abubakar Abid <abubakar@huggingface.co> Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Freddy Boulton <41651716+freddyaboulton@users.noreply.github.com> * Docs mcp server (#11120) * add guide * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Fix markdown change event (#11113) * Fix markdown change event * Fix html change event too * add changeset * Fix * docstring --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Abubakar Abid <abubakar@huggingface.co> * Replace invalid characters in MCP tool name (#11119) * test * add changeset * typefix * openapi note --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * chore: update versions (#11107) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * Ocean theme quickfix (#11129) * changes * add changeset --------- Co-authored-by: Ali Abid <aliabid94@gmail.com> Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Abubakar Abid <abubakar@huggingface.co> * Fix python client SSE decoding issue (#11172) * Add code * Fix * add changeset * Add unit test --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Adds docs for `gr.api()` which were previously missing from the website (#11173) * changes * add changeset * add changeset * js --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Fix builtin functions for gr.State value (#11151) * Fix * add changeset * Update gradio/utils.py Co-authored-by: Abubakar Abid <abubakar@huggingface.co> --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Abubakar Abid <abubakar@huggingface.co> * Fix "delete" diff instruction in JS client (#11147) * Add code * add changeset * add changeset * backend fix * comment * add changeset * unit tests * empty --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * chore: Support Path type for the favicon (#11159) * chore: support Path type for the favicon * add changeset * chore: convert favicon from Path to str internally --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * Remove warning from gr.File about specifying file_types when file_count is directory (#11174) * lint * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> * fix changelogs * Parallelize pytests (#11182) * changes * changes * label * serial * Add code * empty * show emotion dropdown in plain text * output comp * output * format * rename to tags * Update demo/dia_dialogue_demo/run.py Co-authored-by: Abubakar Abid <abubakar@huggingface.co> * notebook * type fixes * un-disable switch in output * fixes * test fix * test fix * Update gradio/components/dialogue.py Co-authored-by: Abubakar Abid <abubakar@huggingface.co> * bug fixes * Update gradio/components/dialogue.py Co-authored-by: Abubakar Abid <abubakar@huggingface.co> * speakers none * Update gradio/components/dialogue.py Co-authored-by: Abubakar Abid <abubakar@huggingface.co> * speakers none * bug fixes * fixes * changes * demos * visual changes * background color * changes * changes * add pytests * dark mode fixes --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com> Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com> Co-authored-by: Gradio PR Bot <121576822+gradio-pr-bot@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Col0ring <47329987+Col0ring@users.noreply.github.com> Co-authored-by: Edward J. Schwartz <moo.github.domain.edmcman@xoxy.net> Co-authored-by: Abubakar Abid <abubakar@huggingface.co> Co-authored-by: eduardpalricas33 <134000231+eduardopalricas33@users.noreply.github.com> Co-authored-by: Dawood <dawoodkhan82@gmail.com> Co-authored-by: Martim-Rito <134000281+Martim-Rito@users.noreply.github.com> Co-authored-by: shaun smith <1936278+evalstate@users.noreply.github.com> Co-authored-by: aliabid94 <aabid94@gmail.com> Co-authored-by: Ali Abid <aliabid94@gmail.com> Co-authored-by: William Droz <william.droz.ch@gmail.com>
Parents
Loading