You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched to see if a similar issue already exists.
Is your feature request related to a problem? Please describe.
Adding new input into gr.Interface leads to backward incompatible changes in API and leads to the following error:
Hi @dbalabka I think the issue here is that setting a value in the gr.Radio does not make it a default value in your function. It only makes it the initially populated value in your UI. This is by design. If you want it to be the default value in your function, simply set it as such in your Python function. E.g. something like this:
defmy_function(name, choice="vtt"):
pass
Then your API should be backwards compatible. Lmk if this solves your problem.
Is your feature request related to a problem? Please describe.
Adding new input into
gr.Interface
leads to backward incompatible changes in API and leads to the following error:In my particular case, I've added:
This input has a default value and does not require input. Still, it leads to
500 Internal Server Error
Describe the solution you'd like
The simplest solution is to allow skipping the values with default values.
Additional context
Gradio version is
3.21.0
The text was updated successfully, but these errors were encountered: