text
stringlengths
0
2k
heading1
stringlengths
3
79
source_page_url
stringclasses
189 values
source_page_title
stringclasses
189 values
nents. For example if Components A and B are in a Row, and A has scale=2, and B has scale=1, A will be twice as wide as B. Should be an integer. scale applies in Rows, and to top-level Components in Blocks where fill_height=True. min_width: int default `= 160` minimum pixel width, will wrap if not suf...
Initialization
https://gradio.app/docs/gradio/datetime
Gradio - Datetime Docs
y have been changed by the user or an event listener) instead of re-rendered based on the values provided during constructor. buttons: list[Button] | None default `= None` A list of gr.Button() instances to show in the top right corner of the component. Custom buttons will appear in the toolbar with t...
Initialization
https://gradio.app/docs/gradio/datetime
Gradio - Datetime Docs
Shortcuts gradio.DateTime Interface String Shortcut `"datetime"` Initialization Uses default values
Shortcuts
https://gradio.app/docs/gradio/datetime
Gradio - Datetime Docs
Description Event listeners allow you to respond to user interactions with the UI components you've defined in a Gradio Blocks app. When a user interacts with an element, such as changing a slider value or uploading an image, a function is called. Supported Event Listeners The DateTime component supports the followi...
Event Listeners
https://gradio.app/docs/gradio/datetime
Gradio - Datetime Docs
returns no outputs, this should be an empty list. api_name: str | None default `= None` defines how the endpoint appears in the API docs. Can be a string or None. If set to a string, the endpoint will be exposed in the API docs with the given name. If None (default), the name of the function will be u...
Event Listeners
https://gradio.app/docs/gradio/datetime
Gradio - Datetime Docs
ning that it should accept a list of input values for each parameter. The lists should be of equal length (and be up to length `max_batch_size`). The function is then *required* to return a tuple of lists (even if there is only 1 output component), with each list in the tuple corresponding to one output component. ...
Event Listeners
https://gradio.app/docs/gradio/datetime
Gradio - Datetime Docs
end js method to run before running 'fn'. Input arguments for js method are values of 'inputs' and 'outputs', return should be a list of values for output components. concurrency_limit: int | None | Literal['default'] default `= "default"` If set, this is the maximum number of this event that can be r...
Event Listeners
https://gradio.app/docs/gradio/datetime
Gradio - Datetime Docs
e=False, and only if it completes successfully will the main function be called. The validator receives the same inputs as the main function and should return a `gr.validate()` for each input value. [Time Plots](../../guides/time-plots/)
Event Listeners
https://gradio.app/docs/gradio/datetime
Gradio - Datetime Docs
Creates an audio component that can be used to upload/record audio (as an input) or display audio (as an output).
Description
https://gradio.app/docs/gradio/audio
Gradio - Audio Docs
**Using Audio as an input component.** How Audio will pass its value to your function: Type: `str | tuple[int, np.ndarray] | None` Passes audio as one of these formats (depending on `type`): * `str` filepath * `tuple` of (sample rate in Hz, audio data as numpy array). * The audio data is a 16-bit `int` ar...
Behavior
https://gradio.app/docs/gradio/audio
Gradio - Audio Docs
Parameters ▼ value: str | Path | tuple[int, np.ndarray] | Callable | None default `= None` A path, URL, or [sample_rate, numpy array] tuple (sample rate in Hz, audio data as a float or int numpy array) for the default value that Audio component is going to take. If a function is provided, the function...
Initialization
https://gradio.app/docs/gradio/audio
Gradio - Audio Docs
set[Component] | None default `= None` Components that are used as inputs to calculate `value` if `value` is a function (has no effect otherwise). `value` is recalculated any time the inputs change. show_label: bool | None default `= None` if True, will display label. container: boo...
Initialization
https://gradio.app/docs/gradio/audio
Gradio - Audio Docs
elem_id: str | None default `= None` An optional string that is assigned as the id of this component in the HTML DOM. Can be used for targeting CSS styles. elem_classes: list[str] | str | None default `= None` An optional list of strings that are assigned as the classes of this component in...
Initialization
https://gradio.app/docs/gradio/audio
Gradio - Audio Docs
and the audio is kept as is. In the case where output audio is returned from the prediction function as numpy array and no `format` is provided, it will be returned as a "wav" file. autoplay: bool default `= False` Whether to automatically play the audio when the component is used as an output. Note:...
Initialization
https://gradio.app/docs/gradio/audio
Gradio - Audio Docs
phone if the source is set to "microphone". Defaults to False. subtitles: str | Path | list[dict[str, Any]] | None default `= None` A subtitle file (srt, vtt, or json) for the audio, or a list of subtitle dictionaries in the format [{"text": str, "timestamp": [start, end]}] where timestamps are in sec...
Initialization
https://gradio.app/docs/gradio/audio
Gradio - Audio Docs
Shortcuts gradio.Audio Interface String Shortcut `"audio"` Initialization Uses default values gradio.Microphone Interface String Shortcut `"microphone"` Initialization Uses sources=["microphone"]
Shortcuts
https://gradio.app/docs/gradio/audio
Gradio - Audio Docs
generate_tonereverse_audio
Demos
https://gradio.app/docs/gradio/audio
Gradio - Audio Docs
Description Event listeners allow you to respond to user interactions with the UI components you've defined in a Gradio Blocks app. When a user interacts with an element, such as changing a slider value or uploading an image, a function is called. Supported Event Listeners The Audio component supports the following ...
Event Listeners
https://gradio.app/docs/gradio/audio
Gradio - Audio Docs
r stops recording with the Audio. Audio.upload(fn, ···) This listener is triggered when the user uploads a file into the Audio. Audio.input(fn, ···) This listener is triggered when the user changes the value of the Audio. Event Parameters Parameters ▼ fn: Callable | Non...
Event Listeners
https://gradio.app/docs/gradio/audio
Gradio - Audio Docs
f False, then no description will be displayed in the API docs. scroll_to_output: bool default `= False` If True, will scroll to output component on completion show_progress: Literal['full', 'minimal', 'hidden'] default `= "minimal"` how to show the progress animation while event is ...
Event Listeners
https://gradio.app/docs/gradio/audio
Gradio - Audio Docs
with the `Image` component). postprocess: bool default `= True` If False, will not run postprocessing of component data before returning 'fn' output to the browser. cancels: dict[str, Any] | list[dict[str, Any]] | None default `= None` A list of other events to cancel when this liste...
Event Listeners
https://gradio.app/docs/gradio/audio
Gradio - Audio Docs
= None` If set, this is the id of the concurrency group. Events with the same concurrency_id will be limited by the lowest set concurrency_limit. api_visibility: Literal['public', 'private', 'undocumented'] default `= "public"` controls the visibility and accessibility of this endpoint. Can be "publi...
Event Listeners
https://gradio.app/docs/gradio/audio
Gradio - Audio Docs
Helper Classes
https://gradio.app/docs/gradio/audio
Gradio - Audio Docs
gradio.WaveformOptions(···) Description A dataclass for specifying options for the waveform display in the Audio component. An instance of this class can be passed into the `waveform_options` parameter of `gr.Audio`. Initialization Parameters ▼ waveform_color: str | None default `= None` The color...
WaveformOptions
https://gradio.app/docs/gradio/audio
Gradio - Audio Docs
Validates that the audio length is within the specified min and max length (in seconds). You can use this to construct a validator that will check if the user-provided audio is either too short or too long. import gradio as gr demo = gr.Interface( lambda x: x, inputs="audio", ...
is_audio_correct_length
https://gradio.app/docs/gradio/audio
Gradio - Audio Docs
The gr.SelectData class is a subclass of gr.EventData that specifically carries information about the `.select()` event. When gr.SelectData is added as a type hint to an argument of an event listener method, a gr.SelectData object will automatically be passed as the value of that argument. The attributes of this object...
Description
https://gradio.app/docs/gradio/selectdata
Gradio - Selectdata Docs
import gradio as gr with gr.Blocks() as demo: table = gr.Dataframe([[1, 2, 3], [4, 5, 6]]) gallery = gr.Gallery([("cat.jpg", "Cat"), ("dog.jpg", "Dog")]) textbox = gr.Textbox("Hello World!") statement = gr.Textbox() def on_select(evt: gr.SelectData): ret...
Example Usage
https://gradio.app/docs/gradio/selectdata
Gradio - Selectdata Docs
Parameters ▼ index: int | tuple[int, int] The index of the selected item. Is a tuple if the component is two dimensional or selection is a range. value: Any The value of the selected item. row_value: list[float | str] The value of the entire row that the selected item ...
Attributes
https://gradio.app/docs/gradio/selectdata
Gradio - Selectdata Docs
gallery_selectionstictactoe
Demos
https://gradio.app/docs/gradio/selectdata
Gradio - Selectdata Docs
The gr.UndoData class is a subclass of gr.Event data that specifically carries information about the `.undo()` event. When gr.UndoData is added as a type hint to an argument of an event listener method, a gr.UndoData object will automatically be passed as the value of that argument. The attributes of this object contai...
Description
https://gradio.app/docs/gradio/undodata
Gradio - Undodata Docs
import gradio as gr def undo(retry_data: gr.UndoData, history: list[gr.MessageDict]): history_up_to_retry = history[:retry_data.index] return history_up_to_retry with gr.Blocks() as demo: chatbot = gr.Chatbot() chatbot.undo(undo, chatbot, chatbot) demo.launch()
Example Usage
https://gradio.app/docs/gradio/undodata
Gradio - Undodata Docs
Parameters ▼ index: int | tuple[int, int] The index of the user message that should be undone. value: Any The value of the user message that should be undone.
Attributes
https://gradio.app/docs/gradio/undodata
Gradio - Undodata Docs
This class allows you to pass custom error messages to the user. You can do so by raising a gr.Error("custom message") anywhere in the code, and when that line is executed the custom message will appear in a modal on the demo. You can control for how long the error message is displayed with the `duration` parameter. I...
Description
https://gradio.app/docs/gradio/error
Gradio - Error Docs
import gradio as gr def divide(numerator, denominator): if denominator == 0: raise gr.Error("Cannot divide by zero!") gr.Interface(divide, ["number", "number"], "number").launch()
Example Usage
https://gradio.app/docs/gradio/error
Gradio - Error Docs
Parameters ▼ message: str default `= "Error raised."` The error message to be displayed to the user. Can be HTML, which will be rendered in the modal. duration: float | None default `= 10` The duration in seconds to display the error message. If None or 0, the error message will be d...
Initialization
https://gradio.app/docs/gradio/error
Gradio - Error Docs
calculatorblocks_chained_events [Alerts](../../guides/alerts/)
Demos
https://gradio.app/docs/gradio/error
Gradio - Error Docs
A Gradio request object that can be used to access the request headers, cookies, query parameters and other information about the request from within the prediction function. The class is a thin wrapper around the fastapi.Request class. Attributes of this class include: `headers`, `client`, `query_params`, `session_has...
Description
https://gradio.app/docs/gradio/request
Gradio - Request Docs
import gradio as gr def echo(text, request: gr.Request): if request: print("Request headers dictionary:", request.headers) print("IP address:", request.client.host) print("Query parameters:", dict(request.query_params)) print("Session hash:", request.session_h...
Example Usage
https://gradio.app/docs/gradio/request
Gradio - Request Docs
Parameters ▼ request: fastapi.Request | None default `= None` A fastapi.Request username: str | None default `= None` The username of the logged in user (if auth is enabled) session_hash: str | None default `= None` The session hash of the current session. It is uni...
Initialization
https://gradio.app/docs/gradio/request
Gradio - Request Docs
request_ip_headers
Demos
https://gradio.app/docs/gradio/request
Gradio - Request Docs
Interface is Gradio's main high-level class, and allows you to create a web-based GUI / demo around a machine learning model (or any Python function) in a few lines of code. You must specify three parameters: (1) the function to create a GUI for (2) the desired input components and (3) the desired output components. Ad...
Description
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
import gradio as gr def image_classifier(inp): return {'cat': 0.3, 'dog': 0.7} demo = gr.Interface(fn=image_classifier, inputs="image", outputs="label") demo.launch()
Example Usage
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
Parameters ▼ fn: Callable the function to wrap an interface around. Often a machine learning model's prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding t...
Initialization
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
If True, caches examples in the server for fast runtime in examples. If "lazy", then examples are cached (for all users of the app) after their first use (by any user of the app). If None, will use the GRADIO_CACHE_EXAMPLES environment variable, which should be either "true" or "false". In HuggingFace Spaces, this pa...
Initialization
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
tically rerun if any of the inputs change. title: str | I18nData | None default `= None` a title for the interface; if provided, appears above the input and output components in large font. Also used as the tab title when opened in a browser window. description: str | None default `= ...
Initialization
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
s ["X", "Y"], in which case the values will be the list of strings and the labels will ["Flag as X", "Flag as Y"], etc. flagging_dir: str default `= ".gradio/flagged"` path to the directory where flagged data is stored. If the directory does not exist, it will be created. flagging_call...
Initialization
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
None` defines how the prediction endpoint appears in the API docs. Can be a string or None. If set to a string, the endpoint will be exposed in the API docs with the given name. If None, the name of the function will be used. api_description: str | None | Literal[False] default `= None` Description ...
Initialization
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
an be provided as well to configure other properties of the container holding the additional inputs. Defaults to a `gr.Accordion(label="Additional Inputs", open=False)`. This parameter is only used if `additional_inputs` is provided. submit_btn: str | Button default `= "Submit"` the button to use for ...
Initialization
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
'minimal', 'hidden'] default `= "full"` how to show the progress animation while event is running: "full" shows a spinner which covers the output component area as well as a runtime display in the upper right corner, "minimal" only shows the runtime display, "hidden" shows no progress animation at all ...
Initialization
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
hello_worldhello_world_2hello_world_3
Demos
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
Methods
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
![](data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%23808080'%20viewBox='0%200%20640%20512'%3e%3c!--!%20Font%20Awesome%20Pro%206.0.0%20by%20@fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license%20\(Commercial%20License\)%20Copyright%202022%20Fonticons,%20Inc....
launch
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
c!--!%20Font%20Awesome%20Pro%206.0.0%20by%20@fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license%20\(Commercial%20License\)%20Copyright%202022%20Fonticons,%20Inc.%20--%3e%3cpath%20d='M172.5%20131.1C228.1%2075.51%20320.5%2075.51%20376.1%20131.1C426.1%20181.1%20433.5%20260.8%20392.4%...
launch
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
2'%3e%3c!--!%20Font%20Awesome%20Pro%206.0.0%20by%20@fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license%20\(Commercial%20License\)%20Copyright%202022%20Fonticons,%20Inc.%20--%3e%3cpath%20d='M172.5%20131.1C228.1%2075.51%20320.5%2075.51%20376.1%20131.1C426.1%20181.1%20433.5%20260.8%2...
launch
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
pp inline in an iframe. Defaults to True in python notebooks; False otherwise. inbrowser: bool default `= False` whether to automatically launch the gradio app in a new tab on the default browser. share: bool | None default `= None` whether to create a publicly shareable link for the...
launch
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
an alert modal and printed in the browser console log. They will also be displayed in the alert modal of downstream apps that gr.load() this app. server_name: str | None default `= None` to make app accessible on local network, set this to "0.0.0.0". Can be set by environment variable GRADIO_SERVER_NA...
launch
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
inks: list[Literal['api', 'gradio', 'settings'] | dict[str, str]] | None default `= None` The links to display in the footer of the app. Accepts a list, where each element of the list must be one of "api", "gradio", or "settings" corresponding to the API docs, "built with Gradio", and settings pages respectively. If ...
launch
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
be set by environment variable GRADIO_ROOT_PATH. Defaults to "". app_kwargs: dict[str, Any] | None default `= None` Additional keyword arguments to pass to the underlying FastAPI app as a dictionary of parameter keys and argument values. For example, `{"docs_url": "/docs"}` state_sessi...
launch
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
] | None default `= None` A function that takes a FastAPI request and returns a string user ID or None. If the function returns None for a specific request, that user is not authorized to access the app (they will see a 401 Unauthorized response). To be used with external authentication systems like OAuth. Cannot be ...
launch
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
vironment variable or default to False. pwa: bool | None default `= None` If True, the Gradio app will be set up as an installable PWA (Progressive Web App). If set to None (default behavior), then the PWA feature will be enabled if this Gradio app is launched on Spaces, but not otherwise. ...
launch
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
read, concatenated, and included in the demo webpage. If the `css` parameter is also set, the css from `css` will be included first. js: str | Literal[True] | None default `= None` Custom js as a code string. The js code will automatically be executed when the page loads. For more flexibility, use th...
launch
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
![](data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%23808080'%20viewBox='0%200%20640%20512'%3e%3c!--!%20Font%20Awesome%20Pro%206.0.0%20by%20@fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license%20\(Commercial%20License\)%20Copyright%202022%20Fonticons,%20Inc....
load
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
%3e%3c!--!%20Font%20Awesome%20Pro%206.0.0%20by%20@fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license%20\(Commercial%20License\)%20Copyright%202022%20Fonticons,%20Inc.%20--%3e%3cpath%20d='M172.5%20131.1C228.1%2075.51%20320.5%2075.51%20376.1%20131.1C426.1%20181.1%20433.5%20260.8%203...
load
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component. inputs: Component | BlockContext | list[Component | BlockContext] | Set[Compo...
load
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
shows the runtime display, "hidden" shows no progress animation at all show_progress_on: Component | list[Component] | None default `= None` Component or list of components to show the progress animation on. If None, will show the progress animation on all of the output components. que...
load
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
ponents .click method. Functions that have not yet run (or generators that are iterating) will be cancelled, but functions that are currently running will be allowed to finish. trigger_mode: Literal['once', 'multiple', 'always_last'] | None default `= None` If "once" (default for all events except `.c...
load
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
nted" (hidden from API docs but callable by clients and via gr.load). If fn is None, api_visibility will automatically be set to "private". time_limit: int | None default `= None` stream_every: float default `= 0.5` key: int | str | tuple[int | str, ...] | None default...
load
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
![](data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%23808080'%20viewBox='0%200%20640%20512'%3e%3c!--!%20Font%20Awesome%20Pro%206.0.0%20by%20@fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license%20\(Commercial%20License\)%20Copyright%202022%20Fonticons,%20Inc....
from_pipeline
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
20640%20512'%3e%3c!--!%20Font%20Awesome%20Pro%206.0.0%20by%20@fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license%20\(Commercial%20License\)%20Copyright%202022%20Fonticons,%20Inc.%20--%3e%3cpath%20d='M172.5%20131.1C228.1%2075.51%20320.5%2075.51%20376.1%20131.1C426.1%20181.1%20433.5...
from_pipeline
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
/svg'%20fill='%23808080'%20viewBox='0%200%20640%20512'%3e%3c!--!%20Font%20Awesome%20Pro%206.0.0%20by%20@fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license%20\(Commercial%20License\)%20Copyright%202022%20Fonticons,%20Inc.%20--%3e%3cpath%20d='M172.5%20131.1C228.1%2075.51%20320.5%207...
from_pipeline
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
ne object to use.
from_pipeline
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
![](data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%23808080'%20viewBox='0%200%20640%20512'%3e%3c!--!%20Font%20Awesome%20Pro%206.0.0%20by%20@fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license%20\(Commercial%20License\)%20Copyright%202022%20Fonticons,%20Inc....
integrate
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
e%3c!--!%20Font%20Awesome%20Pro%206.0.0%20by%20@fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license%20\(Commercial%20License\)%20Copyright%202022%20Fonticons,%20Inc.%20--%3e%3cpath%20d='M172.5%20131.1C228.1%2075.51%20320.5%2075.51%20376.1%20131.1C426.1%20181.1%20433.5%20260.8%20392...
integrate
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
wandb: ModuleType | None default `= None` If the wandb module is provided, will integrate with it and appear on WandB dashboard mlflow: ModuleType | None default `= None` If the mlflow module is provided, will integrate with the experiment and appear on ML Flow dashboard
integrate
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
![](data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%23808080'%20viewBox='0%200%20640%20512'%3e%3c!--!%20Font%20Awesome%20Pro%206.0.0%20by%20@fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license%20\(Commercial%20License\)%20Copyright%202022%20Fonticons,%20Inc....
queue
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
!--!%20Font%20Awesome%20Pro%206.0.0%20by%20@fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license%20\(Commercial%20License\)%20Copyright%202022%20Fonticons,%20Inc.%20--%3e%3cpath%20d='M172.5%20131.1C228.1%2075.51%20320.5%2075.51%20376.1%20131.1C426.1%20181.1%20433.5%20260.8%20392.4%2...
queue
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
ro%206.0.0%20by%20@fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license%20\(Commercial%20License\)%20Copyright%202022%20Fonticons,%20Inc.%20--%3e%3cpath%20d='M172.5%20131.1C228.1%2075.51%20320.5%2075.51%20376.1%20131.1C426.1%20181.1%20433.5%20260.8%20392.4%20318.3L391.3%20319.9C381%...
queue
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
send status at regular intervals set by this parameter as the number of seconds. api_open: bool | None default `= None` If True, the REST routes of the backend will be open, allowing requests made directly to those endpoints to skip the queue. max_size: int | None default `= None` T...
queue
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
![](data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%23808080'%20viewBox='0%200%20640%20512'%3e%3c!--!%20Font%20Awesome%20Pro%206.0.0%20by%20@fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license%20\(Commercial%20License\)%20Copyright%202022%20Fonticons,%20Inc....
launch
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
c!--!%20Font%20Awesome%20Pro%206.0.0%20by%20@fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license%20\(Commercial%20License\)%20Copyright%202022%20Fonticons,%20Inc.%20--%3e%3cpath%20d='M172.5%20131.1C228.1%2075.51%20320.5%2075.51%20376.1%20131.1C426.1%20181.1%20433.5%20260.8%20392.4%...
launch
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
2'%3e%3c!--!%20Font%20Awesome%20Pro%206.0.0%20by%20@fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license%20\(Commercial%20License\)%20Copyright%202022%20Fonticons,%20Inc.%20--%3e%3cpath%20d='M172.5%20131.1C228.1%2075.51%20320.5%2075.51%20376.1%20131.1C426.1%20181.1%20433.5%20260.8%2...
launch
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
pp inline in an iframe. Defaults to True in python notebooks; False otherwise. inbrowser: bool default `= False` whether to automatically launch the gradio app in a new tab on the default browser. share: bool | None default `= None` whether to create a publicly shareable link for the...
launch
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
an alert modal and printed in the browser console log. They will also be displayed in the alert modal of downstream apps that gr.load() this app. server_name: str | None default `= None` to make app accessible on local network, set this to "0.0.0.0". Can be set by environment variable GRADIO_SERVER_NA...
launch
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
inks: list[Literal['api', 'gradio', 'settings'] | dict[str, str]] | None default `= None` The links to display in the footer of the app. Accepts a list, where each element of the list must be one of "api", "gradio", or "settings" corresponding to the API docs, "built with Gradio", and settings pages respectively. If ...
launch
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
be set by environment variable GRADIO_ROOT_PATH. Defaults to "". app_kwargs: dict[str, Any] | None default `= None` Additional keyword arguments to pass to the underlying FastAPI app as a dictionary of parameter keys and argument values. For example, `{"docs_url": "/docs"}` state_sessi...
launch
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
] | None default `= None` A function that takes a FastAPI request and returns a string user ID or None. If the function returns None for a specific request, that user is not authorized to access the app (they will see a 401 Unauthorized response). To be used with external authentication systems like OAuth. Cannot be ...
launch
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
vironment variable or default to False. pwa: bool | None default `= None` If True, the Gradio app will be set up as an installable PWA (Progressive Web App). If set to None (default behavior), then the PWA feature will be enabled if this Gradio app is launched on Spaces, but not otherwise. ...
launch
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
read, concatenated, and included in the demo webpage. If the `css` parameter is also set, the css from `css` will be included first. js: str | Literal[True] | None default `= None` Custom js as a code string. The js code will automatically be executed when the page loads. For more flexibility, use th...
launch
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
![](data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%23808080'%20viewBox='0%200%20640%20512'%3e%3c!--!%20Font%20Awesome%20Pro%206.0.0%20by%20@fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license%20\(Commercial%20License\)%20Copyright%202022%20Fonticons,%20Inc....
load
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
%3e%3c!--!%20Font%20Awesome%20Pro%206.0.0%20by%20@fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license%20\(Commercial%20License\)%20Copyright%202022%20Fonticons,%20Inc.%20--%3e%3cpath%20d='M172.5%20131.1C228.1%2075.51%20320.5%2075.51%20376.1%20131.1C426.1%20181.1%20433.5%20260.8%203...
load
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
prediction function. Each parameter of the function corresponds to one input component, and the function should return a single value or a tuple of values, with each element in the tuple corresponding to one output component. inputs: Component | BlockContext | list[Component | BlockContext] | Set[Compo...
load
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
shows the runtime display, "hidden" shows no progress animation at all show_progress_on: Component | list[Component] | None default `= None` Component or list of components to show the progress animation on. If None, will show the progress animation on all of the output components. que...
load
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
ponents .click method. Functions that have not yet run (or generators that are iterating) will be cancelled, but functions that are currently running will be allowed to finish. trigger_mode: Literal['once', 'multiple', 'always_last'] | None default `= None` If "once" (default for all events except `.c...
load
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
nted" (hidden from API docs but callable by clients and via gr.load). If fn is None, api_visibility will automatically be set to "private". time_limit: int | None default `= None` stream_every: float default `= 0.5` key: int | str | tuple[int | str, ...] | None default...
load
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
![](data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%23808080'%20viewBox='0%200%20640%20512'%3e%3c!--!%20Font%20Awesome%20Pro%206.0.0%20by%20@fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license%20\(Commercial%20License\)%20Copyright%202022%20Fonticons,%20Inc....
from_pipeline
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
20640%20512'%3e%3c!--!%20Font%20Awesome%20Pro%206.0.0%20by%20@fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license%20\(Commercial%20License\)%20Copyright%202022%20Fonticons,%20Inc.%20--%3e%3cpath%20d='M172.5%20131.1C228.1%2075.51%20320.5%2075.51%20376.1%20131.1C426.1%20181.1%20433.5...
from_pipeline
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
/svg'%20fill='%23808080'%20viewBox='0%200%20640%20512'%3e%3c!--!%20Font%20Awesome%20Pro%206.0.0%20by%20@fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license%20\(Commercial%20License\)%20Copyright%202022%20Fonticons,%20Inc.%20--%3e%3cpath%20d='M172.5%20131.1C228.1%2075.51%20320.5%207...
from_pipeline
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
ne object to use.
from_pipeline
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
![](data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20fill='%23808080'%20viewBox='0%200%20640%20512'%3e%3c!--!%20Font%20Awesome%20Pro%206.0.0%20by%20@fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license%20\(Commercial%20License\)%20Copyright%202022%20Fonticons,%20Inc....
integrate
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs
e%3c!--!%20Font%20Awesome%20Pro%206.0.0%20by%20@fontawesome%20-%20https://fontawesome.com%20License%20-%20https://fontawesome.com/license%20\(Commercial%20License\)%20Copyright%202022%20Fonticons,%20Inc.%20--%3e%3cpath%20d='M172.5%20131.1C228.1%2075.51%20320.5%2075.51%20376.1%20131.1C426.1%20181.1%20433.5%20260.8%20392...
integrate
https://gradio.app/docs/gradio/interface#interface-queue
Gradio - Interface#Interface Queue Docs