Comments (2)
Hi @pg56714 - I think the problem is that clicking the examples updates the input image but you have a change event on the input image that clears the outputs.
https://huggingface.co/spaces/pg56714/Segment-Anything-Arena/blob/main/app.py#L202
I think you need to use .clear
event, not a change
event.
Will close as this is behaving as expected.
from gradio.
After further inspection, the issue was that gr.Examples was bound to fn, causing automatic execution when clicking on examples. It was resolved after removing that binding. Thank you.
from gradio.
Related Issues (20)
- Need help to connect either reactnative or node with a gradio model HOT 2
- Gradio Support XML
- gr.FileExplorer - Malfunction after Permission Error ( WinError 5 )
- Update/add documentation for `handle_file` in JS Client
- ImportError: cannot import name 'CommitOperationAdd' from 'huggingface_hub' HOT 1
- Issues with Gradio ImageMask HOT 1
- How to use tool="sketch" in gradio 4.x? HOT 4
- Running `gradio cc dev --host x.x.x.x` on a remote machine does not work.
- Incorrect monitoring URL when using the root_path parameter
- Error when using js for event listeners HOT 1
- Audio component waveform slow rendering HOT 1
- [Gradio Client] cannot pass keyword arguments HOT 6
- ChatBot API documentation does not use keyword argument syntyax HOT 3
- 'use via API' page should (could?) use live values HOT 1
- `@gradio/client` iterator doesn't fully finish (i think)
- Cancelled generators do only get closed after gradio exits. HOT 3
- Use cookies to persist monitoring URL token
- Data event return empty data object in JS client HOT 1
- Redirect to the specified URL HOT 1
- nude girl
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradio.